runWith<R> static method
Runs body with sink as the reporter for everything it awaits.
Implementation
static R runWith<R>(
void Function(Object error, StackTrace stack) sink,
R Function() body,
) {
return runZoned(body, zoneValues: {_zoneKey: sink});
}