invokeReusable method

  1. @override
Future<void> invokeReusable(
  1. BuildContext context,
  2. ScopeManager scope,
  3. EnsembleAction action
)
override

Implementation

@override
Future<void> invokeReusable(
    BuildContext context, ScopeManager scope, EnsembleAction action) async {
  if (_closed) return;
  _pending++;
  try {
    await _invoke(context, scope, action as ExecuteActionAction);
  } catch (error, stack) {
    _recordError(error, stack);
    rethrow;
  } finally {
    _pending--;
    _notifyIdle();
  }
}