Promise


Object Hierarchy:

Gee.Promise Gee.Promise Gee.Promise

Description:


public class Promise<G>

Promise allows to set a value with associated Future. Please note that value can be stored only once.

Typically the producer will create promise and return future while keeping the promise to itself. Then when value is ready it can call set_value.

Since:

0.11.0

See also:

Future, task


Namespace: Gee
Package: gee-0.8

Content:

Properties:

Creation methods:

Methods:




2022 vala-language.org