A scheduler whose tick can be triggered manually, which is helpful for testing purposes.
A scheduler whose tick can be triggered manually, which is helpful for testing purposes.
Tasks are executed synchronously when tick is called.
Typically this scheduler is used indirectly via a VirtualTime instance.
Note: For simplicity reasons the Cancellable instances returned by this scheduler are not functional.
) is a no-op and will always return false. This has the effect that
Cancellable.isCancelled will always return false, too, to adhere to the contract of Cancellable.
A scheduler whose
tick
can be triggered manually, which is helpful for testing purposes. Tasks are executed synchronously whentick
is called.Typically this scheduler is used indirectly via a VirtualTime instance.
Note: For simplicity reasons the Cancellable instances returned by this scheduler are not functional. ) is a no-op and will always return false. This has the effect that Cancellable.isCancelled will always return false, too, to adhere to the contract of Cancellable.