#2721 - Adding implicit sender to Scheduler + tests

This commit is contained in:
Viktor Klang 2012-12-18 00:51:11 +01:00
parent 68f72459a3
commit 978c86339f
8 changed files with 42 additions and 51 deletions

View file

@ -79,7 +79,7 @@ public class SchedulerDocTestBase {
//to the tickActor after 0ms repeating every 50ms
Cancellable cancellable = system.scheduler().schedule(Duration.Zero(),
Duration.create(50, TimeUnit.MILLISECONDS), tickActor, "Tick",
system.dispatcher());
system.dispatcher(), null);
//This cancels further Ticks to be sent
cancellable.cancel();