Future


Object Hierarchy:

Object hierarchy for Future

Description:

[ CCode ( type_id = "dex_future_get_type ()" ) ]
public class Future : Object

`DexFuture` is the base class representing a future which may resolve with a value or reject with error at some point in the future.

It is the basis for libdex's concurrency and parallelism model.

Use futures to represent work in progress and allow consumers to build robust processing chains up front which will complete or fail as futures resolve or reject.

When running on a [class@Dex.Fiber], you may use [method@Dex.Future.await] and similar functions to suspend the current thread and return upon completion of the dependent future.


Namespace: Dex
Package: libdex-1

Content:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Dex.Object