Dex.Cancellable¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
class |
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Dex.Cancellable¶
- Bases:
- Abstract:
No
DexCancellableis a simple cancellation primitive which allows for you to create [class`Dex`.Future] that will reject upon cancellation.Use this combined with other futures using [ctor`Dex`.Future.all_race] to create a future that resolves when all other futures complete or [method`Dex`.Cancellable.cancel] is called to reject.
- classmethod new()¶
- Return type:
Create a new cancellable
- classmethod new_from_cancellable(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – a [class`Gio`.Cancellable]- Return type:
Creates a new [class`Dex`.Cancellable] that will reject when cancellable is cancelled or [method`Dex`.Cancellable.cancel] is called.
- cancel()¶
Rejects self.
Any future that is dependent on this cancellable will be notified of the rejection. For some futures, that may cause them to also reject or resolve.