éåæãã¼ã 第äºæ®µã§ãã æ¸ãæãæ¹ func_by_cb( $cb, @params ) ã¿ãããªå½¢å¼ããã£ãæã«ãCoroã®rouse_cbã使ãã¨ãé常ã®é¢æ°å¼ã³åºãã®å½¢å¼ã§å¼ã³åºããé¢æ°ã«å¤æãã§ãã¾ãããããªæãã§ã sub func_by_coro { func_by_cb( Coro::rouse_cb, @_ ); return Coro::rouse_wait; } å¤æåã®é¢æ°(func_by_cb)ã¯ã以ä¸ã®ããã«ä½¿ãã¾ãã func_by_cb( sub { print @_, "\n"; }, 1, 2, 3); 対ãã¦ãå¤æå¾ã®é¢æ°(func_by_coro)ã§ã¯ããã®å¦çã以ä¸ã®ããã«æ¸ãã¾ãã print func_by_coro(1,2,3), "\n"; 使ãåæã¯ä¸ç®çç¶ã§ããï¼ ã³ã¼ã«ããã¯ãAnyEventã§å®ç¾ããã¦ããå ´å ã³ã¼ã«ããã¯ãAny
{{#tags}}- {{label}}
{{/tags}}