run<R> method
R
run<R>(
- R body()
Runs a call and its asynchronous continuations in this operation's scope.
Implementation
R run<R>(R Function() body) {
if (_released) throw StateError('Resource operation is released.');
if (identical(current, this)) return body();
return runZoned(body, zoneValues: {_zoneKey: this});
}