Dex.Block¶
- Subclasses:
None
Methods¶
- Inherited:
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Dex.Block¶
- Bases:
- Abstract:
No
DexBlockrepresents a callback closure that can be scheduled to run within a specific [struct`GLib`.MainContext].You create these by chaining futures together using [ctor`Dex`.Future.then], [ctor`Dex`.Future.catch], [ctor`Dex`.Future.finally] and similar.
- get_kind()¶
- Returns:
the [enum`Dex`.BlockKind] associated with the self
- Return type:
Gets the kind of block.
The kind of block relates to what situations the block would be executed such as for handling a future resolution, rejection, or both.
- get_scheduler()¶
- Returns:
the [class`Dex`.Scheduler] associated with the self
- Return type:
Gets the scheduler to use when executing a block.