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.
The amount of CPU time that's been scheduled as per ThreadMXBean.
The amount of CPU time that's been scheduled as per ThreadMXBean.
(Since version 2015-01-10) schedulers no longer export this
The amount of User time that's been scheduled as per ThreadMXBean.
The amount of User time that's been scheduled as per ThreadMXBean.
(Since version 2015-01-10) schedulers no longer export this
Total walltime spent in the scheduler.
Total walltime spent in the scheduler.
(Since version 2015-01-10) schedulers no longer export this
An interface for scheduling java.lang.Runnable tasks.