mention “import context.dispatcher” in the docs, see #2638

This commit is contained in:
Roland 2012-10-18 17:31:51 +02:00
parent 84bb53fbf6
commit 543087df9d
2 changed files with 27 additions and 0 deletions

View file

@ -394,4 +394,18 @@ class FutureDocSpec extends AkkaSpec {
intercept[IllegalStateException] { Await.result(result, 2 second) }
}
"demonstrate context.dispatcher" in {
//#context-dispatcher
class A extends Actor {
import context.dispatcher
val f = Future("hello")
def receive = {
//#receive-omitted
case _
//#receive-omitted
}
}
//#context-dispatcher
}
}