Scalaã¨ããã°ä¸¦è¡å¦çã並è¡å¦çã¨ããã°ã¢ã¯ã¿ã¼ãã¨ãããã¨ã ãã©ãããã¾ã§å¤§è¢è£ã§ã¯ãªããµã¯ã£ã¨ã¹ã¬ãããèµ·ããããæã¯ã©ãããããããã ãããã°ã©ãã³ã°Scalaãã®P220ã«ã9.4.1 ãã®å ´éãã®ã¹ã¬ãããã«opsãªãã¸ã§ã¯ãã®spawnã¡ã½ãããç´¹ä»ããã¦ãã¾ãã import scala.concurrent.ops._ object SpawnExample { def main(args: Array[String]) { println("start") spawn { println("async") } } } spawnã§æå®ãããããã¯ãã¹ã¬ããã§å®è¡ããã¾ãããããªã«ç°¡åã«æ¸ãã¦ããã®ãï¼ããã®ã§ãï½ spawnã¡ã½ããå é¨ã®æ¬ä¼¼ã³ã¼ãã¯ãããªæãã def spawn(r: => Unit) = { val t = new Thread() { ove
{{#tags}}- {{label}}
{{/tags}}