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.17 by root, Sun Jul 12 15:54:41 2020 UTC vs.
Revision 1.18 by root, Sun Jul 12 16:31:59 2020 UTC

92file descriptor C<$fh_or_fd>. 92file descriptor C<$fh_or_fd>.
93 93
94The callback C<$cb> is invoked as soon and as long as I/O of the type 94The callback C<$cb> is invoked as soon and as long as I/O of the type
95specified by C<$watch_write>) can be done on the file handle/descriptor. 95specified by C<$watch_write>) can be done on the file handle/descriptor.
96 96
97IF you want a mnemomic for the second argument: C<0> is standard I<input>, 97If you want a mnemomic for the second argument: C<0> is standard I<input>,
98for I<reading>, and C<1> is standard I<output>, for I<writing>. 98for I<reading>, and C<1> is standard I<output>, for I<writing>.
99 99
100Example: wait until STDIN becomes readable. 100Example: wait until STDIN becomes readable.
101 101
102 $stdin_ready = AE::io *STDIN, 0, sub { scalar <STDIN> }; 102 $stdin_ready = AE::io *STDIN, 0, sub { scalar <STDIN> };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines