Total time spent doing blocking operations, in nanoseconds.
Total time spent doing blocking operations, in nanoseconds.
This should only include time spent on threads where
CanAwait.trackElapsedBlocking returns true
.
-1 if the Scheduler does not support tracking this.
this does not include time spent doing blocking code
outside of Scheduler.blocking. For example,
Future(someSlowSynchronousIO)
would not be accounted
for here.
Flush the schedule.
Flush the schedule. Returns when there is no more work to do.
Schedule r
to be run at some time in the future.
Schedule r
to be run at some time in the future.
A scheduler that bridges tasks submitted by external threads into local executor threads. All tasks submitted locally are executed on local threads.
Note: This scheduler expects to create executors with unbounded capacity. Thus it does not expect and has undefined behavior for any
RejectedExecutionException
s other than those encountered after executor shutdown.