runActionFuture<T> method

Future<T?> runActionFuture<T>(
  1. Future<T?> future, {
  2. bool throwException = false,
})

Sets the action to busy, runs the action and then sets it to not busy when completed.

rethrows Exception after setting action busy to false

Implementation

Future<T?> runActionFuture<T>(
  Future<T?> future, {
  bool throwException = false,
}) =>
    runBusyFuture<T>(
      future,
      key: actionName,
      throwException: throwException,
    );