fork method

Keeps an accepted asynchronous invocation alive independently of its caller. Releasing either scope invalidates it without ending the other scope.

Implementation

ResourceOperation fork() {
  if (_released) throw StateError('Resource operation is released.');
  return ResourceOperation._(_group);
}