Since threads of Perl has memory leak problem, I tried to use Coro. Is the following code correct? Thanks. Will async_pool be better?
use Coro; while (1) { async { &start_process(); } cede; //I found that without "cede;", start_process() will not run } sub start_process { ... }
In reply to Use Coro for multi-threads, is this right? by ilxl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |