Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mention which events are emitted safely
  • Loading branch information
kraih committed Nov 25, 2011
1 parent 41f6261 commit dbe8c51
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@ This file documents the revision history for Perl extension Mojolicious.

2.33 2011-11-25 00:00:00
- Improved Mojo::EventEmitter performance slightly.
- Improved documentation.

2.32 2011-11-24 00:00:00
- Added EXPERIMENTAL error event to Mojo::IOWatcher.
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/IOLoop/Client.pm
Expand Up @@ -179,15 +179,15 @@ L<Mojo::IOLoop::Client> can emit the following events.
my ($client, $handle) = @_;
});
Emitted once the connection is established.
Emitted safely once the connection is established.
=head2 C<error>
$client->on(error => sub {
my ($client, $error) = @_;
});
Emitted if an error happens on the connection.
Emitted safely if an error happens on the connection.
=head1 ATTRIBUTES
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -67,7 +67,7 @@ L<Mojo::IOLoop::Delay> can emit the following events.
my $delay = shift;
});
Emitted once the active event counter reaches zero.
Emitted safely once the active event counter reaches zero.
=head1 ATTRIBUTES
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Server.pm
Expand Up @@ -296,7 +296,7 @@ L<Mojo::IOLoop::Server> can emit the following events.
my ($server, $handle) = @_;
});
Emitted for each accepted connection.
Emitted safely for each accepted connection.
=head1 ATTRIBUTES
Expand Down
10 changes: 5 additions & 5 deletions lib/Mojo/IOLoop/Stream.pm
Expand Up @@ -202,39 +202,39 @@ L<Mojo::IOLoop::Stream> can emit the following events.
my $stream = shift;
});
Emitted if the stream gets closed.
Emitted safely if the stream gets closed.
=head2 C<drain>
$stream->on(drain => sub {
my $stream = shift;
});
Emitted once all data has been written.
Emitted safely once all data has been written.
=head2 C<error>
$stream->on(error => sub {
my ($stream, $error) = @_;
});
Emitted if an error happens on the stream.
Emitted safely if an error happens on the stream.
=head2 C<read>
$stream->on(read => sub {
my ($stream, $chunk) = @_;
});
Emitted if new data arrives on the stream.
Emitted safely if new data arrives on the stream.
=head2 C<write>
$stream->on(write => sub {
my ($stream, $chunk) = @_;
});
Emitted if new data has been written to the stream.
Emitted safely if new data has been written to the stream.
=head1 ATTRIBUTES
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOWatcher.pm
Expand Up @@ -174,7 +174,7 @@ L<Mojo::IOWatcher> can emit the following events.
my ($watcher, $error) = @_;
});
Emitted if an error happens.
Emitted safely if an error happens.
=head1 METHODS
Expand Down

0 comments on commit dbe8c51

Please sign in to comment.