forEachIsolate method

Future<void> forEachIsolate(
  1. Future<void> callback(
    1. IsolateRef
    )
)

Executes callback for each isolate, and waiting for all callbacks to finish before completing.

Implementation

Future<void> forEachIsolate(
  Future<void> Function(IsolateRef) callback,
) async {
  await forEachIsolateHelper(this, callback);
}