Subject: | methods declared in wrong place in synopsis |
In synopsis I see this
POE::Session->create(
inline_states => {
_start => \&start,
do_slow_task => \&task,
do_slow_task_cb => \&task_cb,
},
);
However, later in the docs it explains it the right way. The poe-call to
perl sub map belongs in the create for POE::Component::PreforkDispatch
POE::Component::PreforkDispatch->create(
max_forks => 4,
pre_fork => 2,
methods => { do_slow_task => \&task, do_slow_task_cb =>
\&task_cb}
);