Dex.FutureSet

g Dex.Future Dex.Future Dex.FutureSet Dex.FutureSet Dex.Future->Dex.FutureSet Dex.Object Dex.Object Dex.Object->Dex.Future

Subclasses:

None

Methods

Inherited:

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

get_future_at (position)

get_size ()

get_value_at (position)

Virtual Methods

None

Fields

None

Class Details

class Dex.FutureSet
Bases:

Dex.Future

Abstract:

No

DexFutureSet represents a set of [class`Dex`.Future].

You may retrieve each underlying DexFuture using [method`Dex`.FutureSet.get_future_at].

The [enum`Dex`.FutureStatus] of of the DexFutureSet depends on how the set was created using [ctor`Dex`.Future.all], [ctor`Dex`.Future.any], and similar methods.

get_future_at(position)
Parameters:

position (int) – the position within the self

Returns:

the [class`Dex`.Future] at position, or None

Return type:

Dex.Future

Gets the [class`Dex`.Future] at position within self.

It is a programmer error to request a DexFuture which is outside of the range of the number of futures contained within the self. Use [method`Dex`.FutureSet.get_size] to determine the number of DexFuture that are contained within the [class`Dex`.FutureSet].

get_size()
Returns:

the number of [class`Dex`.Future] in self.

Return type:

int

Gets the number of futures associated with the [class`Dex`.FutureSet]. You may use [method`Dex`.FutureSet.get_future_at] to obtain the individual [class`Dex`.Future].

get_value_at(position)
Parameters:

position (int) – the [class`Dex`.Future] position within the set

Raises:

GLib.Error

Returns:

a [struct`GObject`.Value] if successful; otherwise None and error is set.

Return type:

GObject.Value

Gets the result from a [class`Dex`.Future] that is part of the [class`Dex`.FutureSet].