resume method

void resume([
  1. Capability? resumeCapability
])

Resumes after a pause.

If resumeCapability is omitted, it defaults to the isolate's Isolate.pauseCapability.

Even if pause has been called more than once with the same resumeCapability, a single resume call with stop the pause.

Implementation

void resume([Capability? resumeCapability]) {
  resumeCapability ??= isolate.pauseCapability;

  /// according to [Isolate.resume] docs
  /// calling with this capability won't have any effect
  resumeCapability ??= Capability();
  isolate.resume(resumeCapability);
}