#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

@ -35,7 +35,7 @@ public class SchedulerPatternTest {
private final Cancellable tick = getContext().system().scheduler().schedule(
Duration.create(500, TimeUnit.MILLISECONDS),
Duration.create(1000, TimeUnit.MILLISECONDS),
getSelf(), "tick", getContext().dispatcher());
getSelf(), "tick", getContext().dispatcher(), null);
//#schedule-constructor
// this variable and constructor is declared here to not show up in the docs
final ActorRef target;