Created
August 13, 2021 05:31
-
-
Save brownsoo/daf623298b59132ca81d292fbec3049d to your computer and use it in GitHub Desktop.
Scheduling an Action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scheduler scheduler = Schedulers.immediate(); | |
| Scheduler.Worker worker = scheduler.createWorker(); | |
| worker.schedule(() -> result += "action"); | |
| Assert.assertTrue(result.equals("action")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment