Skip to content

Commit

Permalink
updated a few class descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 16, 2011
1 parent 7ff2dc6 commit 3056263
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -512,7 +512,7 @@ L<Mojo::IOLoop> implements the following attributes.
my $class = $loop->client_class;
$loop = $loop->client_class('Mojo::IOLoop::Client');
Class to be used for performing non-blocking socket connections with the
Class to be used for opening TCP connections to remote hosts with the
C<client> method, defaults to L<Mojo::IOLoop::Client>.
Note that this attribute is EXPERIMENTAL and might change without warning!
Expand Down Expand Up @@ -602,7 +602,7 @@ Note that this attribute is EXPERIMENTAL and might change without warning!
my $class = $loop->server_class;
$loop = $loop->server_class('Mojo::IOLoop::Server');
Class to be used for accepting incoming connections with the C<server>
Class to be used for accepting incoming TCP connections with the C<server>
method, defaults to L<Mojo::IOLoop::Server>.
Note that this attribute is EXPERIMENTAL and might change without warning!
Expand All @@ -611,7 +611,7 @@ Note that this attribute is EXPERIMENTAL and might change without warning!
my $class = $loop->stream_class;
$loop = $loop->stream_class('Mojo::IOLoop::Stream');
Class to be used for streaming handles, defaults to L<Mojo::IOLoop::Stream>.
Class to be used for I/O streams, defaults to L<Mojo::IOLoop::Stream>.
Note that this attribute is EXPERIMENTAL and might change without warning!
=head1 METHODS
Expand Down Expand Up @@ -721,7 +721,7 @@ responsiveness.
my $id = $loop->server(port => 3000, sub {...});
my $id = $loop->server({port => 3000}, sub {...});
Create a new listen socket with C<server_class>, which is usually
Accept incoming TCP connections with C<server_class>, which is usually
L<Mojo::IOLoop::Server>, takes the same arguments as
L<Mojo::IOLoop::Server/"listen">.
Note that this method is EXPERIMENTAL and might change without warning!
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/IOLoop/Client.pm
Expand Up @@ -154,7 +154,7 @@ __END__
=head1 NAME
Mojo::IOLoop::Client - IOLoop socket client
Mojo::IOLoop::Client - Non-blocking TCP client
=head1 SYNOPSIS
Expand All @@ -174,7 +174,7 @@ Mojo::IOLoop::Client - IOLoop socket client
=head1 DESCRIPTION
L<Mojo::IOLoop::Client> performs non-blocking socket connections for
L<Mojo::IOLoop::Client> opens non-blocking TCP connections for
L<Mojo::IOLoop>.
Note that this module is EXPERIMENTAL and might change without warning!
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -30,7 +30,7 @@ __END__
=head1 NAME
Mojo::IOLoop::Delay - IOLoop delay
Mojo::IOLoop::Delay - Synchronize events
=head1 SYNOPSIS
Expand Down
9 changes: 5 additions & 4 deletions lib/Mojo/IOLoop/Resolver.pm
Expand Up @@ -210,14 +210,13 @@ sub _cleanup {
my ($self, $next) = @_;

# Next server
return unless my $loop = $self->ioloop;
if ($next) {
push @{$self->servers}, shift @{$self->servers};
warn "NEXT SERVER (" . $self->servers->[0] . ")\n" if DEBUG;
}
delete $self->{server};
delete $self->{started};
return unless my $loop = $self->ioloop;
$loop->drop(delete $self->{id}) if $self->{id};
delete $self->{started};

# Finish requests
return unless my $requests = delete $self->{requests};
Expand Down Expand Up @@ -339,7 +338,7 @@ __END__
=head1 NAME
Mojo::IOLoop::Resolver - IOLoop DNS stub resolver
Mojo::IOLoop::Resolver - Non-blocking DNS stub resolver
=head1 SYNOPSIS
Expand Down Expand Up @@ -375,6 +374,8 @@ L<Mojo::IOLoop::Resolver> implements the following attributes.
Known hosts map used by C<lookup>.
$resolver->hosts->{'mojolicio.us'} = '127.0.0.1';
=head2 C<ioloop>
my $ioloop = $resolver->ioloop;
Expand Down
5 changes: 2 additions & 3 deletions lib/Mojo/IOLoop/Server.pm
Expand Up @@ -260,7 +260,7 @@ __END__
=head1 NAME
Mojo::IOLoop::Server - IOLoop socket server
Mojo::IOLoop::Server - Non-blocking TCP server
=head1 SYNOPSIS
Expand All @@ -280,8 +280,7 @@ Mojo::IOLoop::Server - IOLoop socket server
=head1 DESCRIPTION
L<Mojo::IOLoop::Server> accepts incoming socket connections for
L<Mojo::IOLoop>.
L<Mojo::IOLoop::Server> accepts incoming TCP connections for L<Mojo::IOLoop>.
Note that this module is EXPERIMENTAL and might change without warning!
=head1 EVENTS
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/IOLoop/Stream.pm
Expand Up @@ -159,7 +159,7 @@ __END__
=head1 NAME
Mojo::IOLoop::Stream - IOLoop stream
Mojo::IOLoop::Stream - Non-blocking I/O stream
=head1 SYNOPSIS
Expand All @@ -186,7 +186,7 @@ Mojo::IOLoop::Stream - IOLoop stream
=head1 DESCRIPTION
L<Mojo::IOLoop::Stream> is a container for streaming handles used by
L<Mojo::IOLoop::Stream> is a container for I/O streams used by
L<Mojo::IOLoop>.
Note that this module is EXPERIMENTAL and might change without warning!
Expand Down

0 comments on commit 3056263

Please sign in to comment.