settle method
Waits until every bloc in the process is idle: no send in flight
(waiting in a sequential queue counts), no reaction hop pending, no
sendAfter still waiting to fire — and still none one turn of the
event loop later.
Fails the test if that has not happened within timeout, naming what
is still in flight. Under virtual time the timeout is virtual too: a
timer that re-arms itself for ever fails after timeout of virtual
time, which takes none.
Implementation
Future<void> settle({Duration timeout = defaultTimeout}) {
_checkRunning();
return _call(() => _settle(timeout));
}