[Io-lambda-general] cvs commit: perl/IO-Lambda/lib/IO/ Lambda.pm perl/IO-Lambda/lib/IO/Lambda/ HTTP
Brought to you by:
int32
|
From: Dmitry K. <dm...@ka...> - 2009-12-01 23:02:05
|
dk 2009/12/02 00:01:52 CET
Modified files:
perl/IO-Lambda/lib/IO Lambda.pm
perl/IO-Lambda/lib/IO/Lambda HTTP.pm Mutex.pm
perl/IO-Lambda/t 21_exceptions.t
Log:
Elaborate on catching and rethrowing events' API.
- add autocatch($) prefix for auto-rethrowing conditions
- add call_again() for re-invoking a cancelled condition within catch{};
- add is_cancelling which is only true inside catch {}
WATCH_CANCEL is now called with min. 2 parameters,
the 2nd is the record being cancelled. It is also nulled
right befire the call to avoid endless recursion. Extended f
form of bind() is updated accordingly; Mutex uses that form
and is updated too.
HTTP uses autocatch to deposit a connection back gracefully
even if lambda is cancelled
Revision Changes Path
1.178 +73 -26 perl/IO-Lambda/lib/IO/Lambda.pm
1.51 +2 -2 perl/IO-Lambda/lib/IO/Lambda/HTTP.pm
1.8 +2 -2 perl/IO-Lambda/lib/IO/Lambda/Mutex.pm
1.6 +42 -2 perl/IO-Lambda/t/21_exceptions.t
|