awaited property

ValueCell<(T$1, T$2, T$3)> get awaited

A cell that awaits the Future held in the cells in this.

The returned cell is like waitLast with the difference that whenever the values of the cells in this change, accessing the value of the returned cell before the new Futures have completed, will throw a PendingAsyncValueError.

NOTE: The returned cell must have at least one observer in order to function.

Implementation

ValueCell<(T$1, T$2, T$3)> get awaited {
  return AwaitCell(
      arg: apply(
    ($1, $2, $3) => ($1, $2, $3).wait,
    key: _CombinedAwaitCellKey(this),
  ));
}