Dex.Cancellable

g Dex.Cancellable Dex.Cancellable Dex.Future Dex.Future Dex.Future->Dex.Cancellable Dex.Object Dex.Object Dex.Object->Dex.Future

Subclasses:

None

Methods

Inherited:

Dex.Future (50), Dex.Object (2)

class

new ()

class

new_from_cancellable (cancellable)

cancel ()

Virtual Methods

None

Fields

None

Class Details

class Dex.Cancellable
Bases:

Dex.Future

Abstract:

No

DexCancellable is a simple cancellation primitive which allows for you to create DexFuture that will reject upon cancellation.

Use this combined with other futures using Dex.Future.all_race() to create a future that resolves when all other futures complete or dex_cancellable_cancel() is called to reject.

classmethod new()
Return type:

Dex.Cancellable

classmethod new_from_cancellable(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) –

Return type:

Dex.Future

cancel()