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:
the [class`Gio`.Cancellable] associated with the self
- Return type:
Gets the cancellable for the async pair.
If the [class`Dex`.AsyncPair] is discarded by its callers, then it will automatically be cancelled using [method`Gio`.Cancellable.cancel].
- return_error(error)¶
- Parameters:
error (
GLib.Error) – a [struct`GLib`.Error]
Rejects self with error.
This function is meant to be used when manually wrapping various [callback`Gio`.AsyncReadyCallback] based API.
The ownership of error is taken when calling this function.
- return_object(instance)¶
- Parameters:
instance (
GObject.Object) – a [class`GObject`.Object]
Resolves self with a value of instance.
This function is meant to be used when manually wrapping various [callback`Gio`.AsyncReadyCallback] based API.
The ownership of instance is taken when calling this function.
- return_variant(variant)¶
- Parameters:
variant (
GLib.Variant) – the [struct`GLib`.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.