Executes a function f
in a blocking fashion.
The amount of CPU time that's been scheduled as per ThreadMXBean.
Flush the schedule.
The number of dispatches performed by this scheduler.
Swap out the current globally-set scheduler with another.
Swap out the current globally-set scheduler with another.
Note: This can be unsafe since some schedulers may be active, and flush() can be invoked on the wrong scheduler.
This can happen, for example, if a LocalScheduler is used while a future is resolved via Await.
the other Scheduler to swap in for the one that is currently set
Schedule r
to be run at some time in the future.
The amount of User time that's been scheduled as per ThreadMXBean.
Total walltime spent in the scheduler.
A global scheduler.