[ 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.
callback when future rejects.
callback when future
rejects.
callback when future resolves or
rejects.
callback when future
rejects or resolves.
errno_ as the value
of errno for the GError.
fd.
callback when future resolves.
callback when future
resolves.