isolateHop top-level constant
Rule
const isolateHop
Awaiting another isolate outside runAsync.
Implementation
const isolateHop = Rule(
id: 'isolate-hop',
severity: Severity.error,
title: 'Awaits another isolate outside runAsync',
why:
'compute(), Isolate.run(), Isolate.spawn() and ReceivePort reads finish '
'on a real port. The reply is delivered into the FakeAsync zone and '
'never processed while the test is waiting for it.',
fix:
'Wrap the call in `await tester.runAsync(() => ...)`, or call the '
'function directly in the test instead of on an isolate.',
);