ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent.pm (file contents):
Revision 1.353 by root, Thu Aug 11 20:56:07 2011 UTC vs.
Revision 1.354 by root, Thu Aug 11 21:26:39 2011 UTC

1005 # AnyEvent not yet initialised, so make sure to load Coro::AnyEvent 1005 # AnyEvent not yet initialised, so make sure to load Coro::AnyEvent
1006 # as soon as it is 1006 # as soon as it is
1007 push @AnyEvent::post_detect, sub { require Coro::AnyEvent }; 1007 push @AnyEvent::post_detect, sub { require Coro::AnyEvent };
1008 } 1008 }
1009 1009
1010=item AnyEvent::postpone BLOCK 1010=item AnyEvent::postpone { BLOCK }
1011 1011
1012Arranges for the block to be executed as soon as possible, but not before 1012Arranges for the block to be executed as soon as possible, but not before
1013the call itself returns. In practise, the block will be executed just 1013the call itself returns. In practise, the block will be executed just
1014before the event loop polls for new events, or shortly afterwards. 1014before the event loop polls for new events, or shortly afterwards.
1015 1015
1453 1453
1454sub time() { 1454sub time() {
1455 AnyEvent->time 1455 AnyEvent->time
1456} 1456}
1457 1457
1458*postpone = \&AnyEvent::postpone;
1459
1458package AnyEvent::Base; 1460package AnyEvent::Base;
1459 1461
1460# default implementations for many methods 1462# default implementations for many methods
1461 1463
1462sub time { 1464sub time {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines