Add note about mixing in the Stash trait
This commit is contained in:
parent
e909407827
commit
9244e8399d
1 changed files with 4 additions and 0 deletions
|
|
@ -41,6 +41,10 @@ import akka.AkkaException
|
|||
* }
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Note that the `Stash` trait must be mixed into (a subclass of) the `Actor` trait before
|
||||
* any trait/class that overrides the `preRestart` callback. This means it's not possible to write
|
||||
* `Actor with MyActor with Stash` if `MyActor` overrides `preRestart`.
|
||||
*/
|
||||
trait Stash {
|
||||
this: Actor ⇒
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue