forEachIsolate method
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);
}