after<R> method

FutureOr<R> after<R>(
  1. R exec()
)

Implementation

FutureOr<R> after<R>(R exec()) {
  if (isCompleted) {
    return exec();
  } else {
    return future.then((_) => exec());
  }
}