ã¢ã¯ã¿ã¼ã®çæã»éå§ extends Actor import actors.Actor class MyActor extends Actor { def act: Unit = { ... } } val myActor = new MyActor myActor.start actorã¡ã½ãã ãã ã¡ã«éå§ãã import actors.Actor._ val myActor = actor { ... } ã¡ãã»ã¼ã¸åä¿¡ receive 常ã«ã¹ã¬ããã使ç¨ãã receiveã®çµæãè¿ãã val myActor = actor { val rr = receive { case i:Int => println("receive " + i) "Int" } println("receive result " + rr) } myActor ! 1 react ã¡ãã»ã¼ã¸å¦çä¸
{{#tags}}- {{label}}
{{/tags}}