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.
Flush the schedule.
Flush the schedule. Returns when there is no more work to do.
The number of dispatches performed by this scheduler.
Schedule r
to be run at some time 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.
An interface for scheduling java.lang.Runnable tasks.