CallbackScheduler Class


Callback scheduler.

There are two subclasses: DelayedCallbackScheduler and ImmediateCallbackScheduler .

DelayedCallbackScheduler is used to delay callback to be invoked manually, and it can be used in single-threaded environments (such as various UI environments).

ImmediateCallbackScheduler is used to mark callback to be invoked when event is dispatched, and it can be used in multi-threaded environments (such as server or service daemon).