Executes a function f
in a blocking fashion.
Executes a function f
in a blocking fashion.
Note: The permit may be removed in the future.
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.
An implementation of Iterator over runnable tasks
An implementation of Iterator over runnable tasks
An implementation of Iterator over runnable tasks
An implementation of Iterator over runnable tasks
The number of dispatches performed by this scheduler.
The number of dispatches performed by this scheduler.
Schedule r
to be run at some time in the future.
Schedule r
to be run at some time in the future.
An efficient thread-local, direct-dispatch scheduler.