Dex.FutureSet¶
- Subclasses:
None
Methods¶
- Inherited:
|
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Dex.FutureSet¶
- Bases:
- Abstract:
No
DexFutureSetrepresents a set of [class`Dex`.Future].You may retrieve each underlying
DexFutureusing [method`Dex`.FutureSet.get_future_at].The [enum`Dex`.FutureStatus] of of the
DexFutureSetdepends 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:
Gets the [class`Dex`.Future] at position within self.
It is a programmer error to request a
DexFuturewhich is outside of the range of the number of futures contained within the self. Use [method`Dex`.FutureSet.get_size] to determine the number ofDexFuturethat are contained within the [class`Dex`.FutureSet].
- get_size()¶
- Returns:
the number of [class`Dex`.Future] in self.
- Return type:
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].