- or download this
MCE::Loop->init(
max_workers => 2, chunk_size => 1, user_begin => sub {
...
}
);
- or download this
local $SIG{__DIE__} = sub {
...
$self->exit(255, $_die_msg, $self->{_chunk_id});
};
- or download this
eval { mce_loop { ... } @input };
...
...
}