Make imports explicit in timer example (#24010)
This commit is contained in:
parent
983bfdeeb7
commit
26cd916d98
1 changed files with 3 additions and 4 deletions
|
|
@ -3,18 +3,17 @@
|
|||
*/
|
||||
package docs.actor
|
||||
|
||||
import akka.actor.Actor
|
||||
import scala.concurrent.duration._
|
||||
|
||||
object TimerDocSpec {
|
||||
//#timers
|
||||
import scala.concurrent.duration._
|
||||
|
||||
import akka.actor.Actor
|
||||
import akka.actor.Timers
|
||||
|
||||
object MyActor {
|
||||
private case object TickKey
|
||||
private case object FirstTick
|
||||
private case object Tick
|
||||
private case object LaterTick
|
||||
}
|
||||
|
||||
class MyActor extends Actor with Timers {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue