You probably could whip up a state machine implementing this with POE and POE::Wheel::Run fairly easily. The background tasks would be run in separate processes with P::W::Run while the main process' session runs the others (waiting until the background wheels send it an event that they're complete).
--
We're looking for people in ATL
In reply to Re: How to asynchronisly get notified of a child exit
by Fletch
in thread How to asynchronisly get notified of a child exit
by Mostly Harmless
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |