markPending method

OutstandingWork markPending()

Indicates that this test should not be considered done until the returned OutstandingWork is marked as complete.

The test may time out before the outstanding work completes.

Implementation

OutstandingWork markPending() {
  if (_invoker.closed) throw ClosedException();
  return OutstandingWork._(_invoker, Zone.current);
}