- or download this
async {
while( $Q->dequeue() ) {
...
## do housekeeping.
}
};
- or download this
while( my( $nfound, $timeleft) = select( ..., $timeout ) ) {
if( $timeleft ) {
...
## deal with the event
}
}
- or download this
use Time::HiRes qw[ sleep ];
...
...
## Do housekeeping (if required).
}
}
- or download this
async{ 1 while Win32::Sleep( 100 ); }->join;;