waitFutureExucution method

Future waitFutureExucution(
  1. FutureExecution futureExecution
)

Implementation

Future<dynamic> waitFutureExucution(FutureExecution futureExecution) async {
  var possibleFutureValue = await futureExecution.future;
  var result = execute(
    createStackFrame: false,
    propagateValue: false,
    context: futureExecution.context,
    stackFrame: futureExecution.stack,
    localValue: possibleFutureValue,
  );
  while (result is FutureExecution) {
    result = await waitFutureExucution(result);
  }
  return result;
}