Skip to content

Commit

Permalink
mention which methods are considered low-level
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 18, 2014
1 parent e2de323 commit 116d280
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Changes
Expand Up @@ -2682,7 +2682,7 @@
- Fixed connection reset handling in Mojo::IOLoop.

0.999935 2010-11-03
- Added EXPERIMENTAL module Mojo::Util as a faster low level alternative to
- Added EXPERIMENTAL module Mojo::Util as a faster low-level alternative to
Mojo::ByteStream and rewrote many internals to use it instead.
- Improved Mojo::IOLoop performance by about 20%.
- Made automatic file storage upgrade smarter.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop.pm
Expand Up @@ -380,7 +380,7 @@ Number of connections to accept at once, defaults to C<50>.
my $reactor = $loop->reactor;
$loop = $loop->reactor(Mojo::Reactor->new);
Low level event reactor, usually a L<Mojo::Reactor::Poll> or
Low-level event reactor, usually a L<Mojo::Reactor::Poll> or
L<Mojo::Reactor::EV> object with a default subscriber to the event
L<Mojo::Reactor/"error">.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Client.pm
Expand Up @@ -184,7 +184,7 @@ L<Mojo::IOLoop::Client> implements the following attributes.
my $reactor = $client->reactor;
$client = $client->reactor(Mojo::Reactor::Poll->new);
Low level event reactor, defaults to the C<reactor> attribute value of the
Low-level event reactor, defaults to the C<reactor> attribute value of the
global L<Mojo::IOLoop> singleton.
=head1 METHODS
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Server.pm
Expand Up @@ -210,7 +210,7 @@ Number of connections to accept at once, defaults to C<50>.
my $reactor = $server->reactor;
$server = $server->reactor(Mojo::Reactor::Poll->new);
Low level event reactor, defaults to the C<reactor> attribute value of the
Low-level event reactor, defaults to the C<reactor> attribute value of the
global L<Mojo::IOLoop> singleton.
=head1 METHODS
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Stream.pm
Expand Up @@ -243,7 +243,7 @@ L<Mojo::IOLoop::Stream> implements the following attributes.
my $reactor = $stream->reactor;
$stream = $stream->reactor(Mojo::Reactor::Poll->new);
Low level event reactor, defaults to the C<reactor> attribute value of the
Low-level event reactor, defaults to the C<reactor> attribute value of the
global L<Mojo::IOLoop> singleton.
=head1 METHODS
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Reactor.pm
Expand Up @@ -44,7 +44,7 @@ sub watch { croak 'Method "watch" not implemented by subclass' }
=head1 NAME
Mojo::Reactor - Low level event reactor base class
Mojo::Reactor - Low-level event reactor base class
=head1 SYNOPSIS
Expand All @@ -66,7 +66,7 @@ Mojo::Reactor - Low level event reactor base class
=head1 DESCRIPTION
L<Mojo::Reactor> is an abstract base class for low level event reactors.
L<Mojo::Reactor> is an abstract base class for low-level event reactors.
=head1 EVENTS
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Reactor/EV.pm
Expand Up @@ -77,7 +77,7 @@ sub _timer {
=head1 NAME
Mojo::Reactor::EV - Low level event reactor with libev support
Mojo::Reactor::EV - Low-level event reactor with libev support
=head1 SYNOPSIS
Expand Down Expand Up @@ -105,7 +105,7 @@ Mojo::Reactor::EV - Low level event reactor with libev support
=head1 DESCRIPTION
L<Mojo::Reactor::EV> is a low level event reactor based on L<EV> (4.0+).
L<Mojo::Reactor::EV> is a low-level event reactor based on L<EV> (4.0+).
=head1 EVENTS
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Reactor/Poll.pm
Expand Up @@ -128,7 +128,7 @@ sub _timer {
=head1 NAME
Mojo::Reactor::Poll - Low level event reactor with poll support
Mojo::Reactor::Poll - Low-level event reactor with poll support
=head1 SYNOPSIS
Expand Down Expand Up @@ -156,7 +156,7 @@ Mojo::Reactor::Poll - Low level event reactor with poll support
=head1 DESCRIPTION
L<Mojo::Reactor::Poll> is a low level event reactor based on L<IO::Poll>.
L<Mojo::Reactor::Poll> is a low-level event reactor based on L<IO::Poll>.
=head1 EVENTS
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -492,7 +492,7 @@ created at startup time.

app->start;

Since timers and other low level event watchers are also independent from
Since timers and other low-level event watchers are also independent from
applications, errors can't get logged automatically, you can change that by
subscribing to the event L<Mojo::Reactor/"error">.

Expand Down
7 changes: 4 additions & 3 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -188,9 +188,10 @@ class, but the router can be accessed from everywhere (even at runtime).

=head2 Routing destination

After you start a new route with the method L<Mojolicious::Routes/"route">,
you can also give it a destination in the form of a hash using the chained
method L<Mojolicious::Routes::Route/"to">.
After you start a new route with the method
L<Mojolicious::Routes::Route/"route">, you can also give it a destination in
the form of a hash using the chained method
L<Mojolicious::Routes::Route/"to">.

# /welcome -> {controller => 'foo', action => 'welcome'}
$r->route('/welcome')->to(controller => 'foo', action => 'welcome');
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Routes.pm
Expand Up @@ -366,7 +366,7 @@ Match routes with L<Mojolicious::Routes::Match>.
my $route = $r->route('/:action', action => qr/\w+/);
my $route = $r->route(format => 0);
Generate route matching all HTTP request methods.
Low-level generator for routes matching all HTTP request methods.
=head1 SEE ALSO
Expand Down
5 changes: 2 additions & 3 deletions lib/Mojolicious/Routes/Route.pm
Expand Up @@ -333,7 +333,7 @@ also the L<Mojolicious::Lite> tutorial for more argument variations.
my $bridge = $r->bridge('/:action', action => qr/\w+/);
my $bridge = $r->bridge(format => 0);
Generate bridge route with optional pattern and restrictive placeholders.
Low-level generator for bridge routes.
my $auth = $r->bridge('/user')->to('user#auth');
$auth->get('/show')->to('#show');
Expand Down Expand Up @@ -515,8 +515,7 @@ The L<Mojolicious::Routes> object this route is an descendent of.
my $route = $r->route('/:action', action => qr/\w+/);
my $route = $r->route(format => 0);
Generate route matching all HTTP request methods with optional pattern and
restrictive placeholders.
Low-level generator for routes matching all HTTP request methods.
=head2 to
Expand Down

0 comments on commit 116d280

Please sign in to comment.