in reply to Re: coderef for 1 .. 2?
in thread coderef for 1 .. 2?
are related to IOLoop. From the documentation, each $delay->begin would increment the event counter and the returned code reference can be used as a callback. The callback needs to be executed when the event has completed to decrement the event counter again. However, I just cannot understand the recursion in this case failed to continue calling itself without the for loop.my $end = $delay->begin; ... $end->();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: coderef for 1 .. 2?
by ronstudio (Novice) on Nov 02, 2017 at 07:34 UTC | |
by Anonymous Monk on Nov 02, 2017 at 13:16 UTC |