Actor receive
method composed of registered partial functions.
Actor receive
method composed of registered partial functions.
Registers new receiving partial function, that will extend existing.
Registers new receiving partial function, that will extend existing.
Allows to compose actor behaviour by stacking up
receive
methods viastackReceive
.class FooBar extends Foo with Bar
val fooBar = system actorOf Props { new FooBar } fooBar ! "foo" // outputs "foo" fooBar ! "bar" // outputs "bar"