Skip to content

Instantly share code, notes, and snippets.

@brownsoo
Created August 13, 2021 05:31
Show Gist options
  • Select an option

  • Save brownsoo/daf623298b59132ca81d292fbec3049d to your computer and use it in GitHub Desktop.

Select an option

Save brownsoo/daf623298b59132ca81d292fbec3049d to your computer and use it in GitHub Desktop.
Scheduling an Action
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