Dex.AsyncPair¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Dex.AsyncPair¶
- Bases:
- Abstract:
No
- classmethod new(instance, info)¶
- Parameters:
info (
Dex.AsyncPairInfo
) –
- Return type:
- get_cancellable()¶
- Returns:
- Return type:
Gets the cancellable for the async pair.
If the
Dex.AsyncPair
is discarded by it’s callers, then it will automatically be cancelled usingGio.Cancellable.cancel
().
- return_error(error)¶
- Parameters:
error (
GLib.Error
) – aGLib.Error
Rejects self with error.
This function is meant to be used when manually wrapping various
Gio.AsyncReadyCallback
based API.The ownership of error is taken when calling this function.
- return_object(instance)¶
- Parameters:
instance (
GObject.Object
) – aGObject.Object
Resolves self with a value of instance.
This function is meant to be used when manually wrapping various
Gio.AsyncReadyCallback
based API.The ownership of instance is taken when calling this function.
- return_variant(variant)¶
- Parameters:
variant (
GLib.Variant
) – the variant to resolve with
Resolves self with variant.
- set_cancel_on_discard(cancel_on_discard)¶
- Parameters:
cancel_on_discard (
bool
) – if the operation should cancel when the future is discarded
Sets whether or not the future should cancel the async operation when the future is discarded. This happens when no more futures are awaiting the completion of this future.
New in version 0.4.