awaitAsyncSubmitted method

bool awaitAsyncSubmitted()

Await for previously submitted async operations to be completed (the async queue does not have to become idle).

Returns true if all submissions were completed or async processing was not started; false if shutting down (or an internal error occurred).

Use to wait until all puts by Box.putQueued have finished.

Implementation

bool awaitAsyncSubmitted() {
  final result = C.store_await_async_submitted(_ptr);
  reachabilityFence(this);
  return result;
}