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 (48), 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

Dex.FutureSet represents a set of Dex.Future.

You may retrieve each underlying Dex.Future using Dex.FutureSet.get_future_at().

The Dex.FutureStatus of of the Dex.FutureSet depends on how the set was created using Dex.Future.all(), Dex.Future.any(), and similar mmethods.

get_future_at(position)
Parameters:

position (int) –

Returns:

a Dex.Future

Return type:

Dex.Future

Gets a Dex.Future that was used to produce the result of self.

Use Dex.FutureSet.get_size() to determine the number of Dex.Future that are contained within the Dex.FutureSet.

get_size()
Returns:

the number of Dex.Future in self.

Return type:

int

Gets the number of futures associated with the Dex.FutureSet. You may use Dex.FutureSet.get_future_at() to obtain the individual Dex.Future.

get_value_at(position)
Parameters:

position (int) – the Dex.Future position within the set

Raises:

GLib.Error

Returns:

a GObject.Value if successful; otherwise None and error is set.

Return type:

GObject.Value

Gets the result from a Dex.Future that is part of the Dex.FutureSet.