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

Comparing AnyEvent/lib/AE.pm (file contents):
Revision 1.2 by root, Sun Aug 9 15:09:28 2009 UTC vs.
Revision 1.3 by root, Sun Aug 9 16:11:05 2009 UTC

9=head1 DESCRIPTION 9=head1 DESCRIPTION
10 10
11This module documents the new simpler AnyEvent API. 11This module documents the new simpler AnyEvent API.
12 12
13The rationale for the new API is that experience with L<EV> shows that 13The rationale for the new API is that experience with L<EV> shows that
14this API actually "works", despite it's lack of extensibility. 14this API actually "works", despite it's lack of extensibility, leading to
15a shorter, easier and faster API.
15 16
16The main difference to AnyEvent is that instead of method calls, function 17The main difference to AnyEvent is that instead of method calls, function
17calls are used, and that no named arguments are used. 18calls are used, and that no named arguments are used.
18 19
19This makes calls to watcher creation functions really short, which can 20This makes calls to watcher creation functions really short, which can
29affect his API), so the L<AnyEvent> API has a definite advantage here 30affect his API), so the L<AnyEvent> API has a definite advantage here
30still. 31still.
31 32
32Note that the C<AE> API is an alternative to, not the future version of, 33Note that the C<AE> API is an alternative to, not the future version of,
33the AnyEvent API. Both APIs can be used interchangably and and there are 34the AnyEvent API. Both APIs can be used interchangably and and there are
34no plans to "switch", so if in doubt, use L<AnyEvent>'s API. 35no plans to "switch", so if in doubt, use the L<AnyEvent> API.
35 36
36As the AE API is complementary, not everything in the AnyEvent API is 37As the AE API is complementary, not everything in the AnyEvent API is
37available, so you still need to use AnyEvent for the finer stuff. Also, 38available, so you still need to use AnyEvent for the finer stuff. Also,
38you should not C<use AE> directly, C<use AnyEvent> will provide the AE 39you should not C<use AE> directly, C<use AnyEvent> will provide the AE
39namespace. 40namespace.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines