Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusramberg committed Dec 12, 2011
1 parent 4437c7c commit e669dc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -757,6 +757,9 @@ and the loop can be restarted by running C<start> again.
Get L<Mojo::IOLoop::Stream> object for id or turn object into a connection.
Note that this method is EXPERIMENTAL and might change without warning!
# Increase timeout for current connection to 300 seconds
Mojo::IOLoop->stream($tx->connection)->timeout(300);
=head2 C<timer>
my $id = Mojo::IOLoop->timer(5 => sub {...});
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/UserAgent.pm
Expand Up @@ -781,7 +781,8 @@ implements the following new ones.
$ua = $ua->app(MyApp->new);
Application relative URLs will be processed with, defaults to the value of
the C<MOJO_APP> environment variable.
the C<MOJO_APP> environment variable. Usually a L<Mojo> or L<Mojolicious
object.
say $ua->app->secret;
$ua->app->log->level('fatal');
Expand Down

0 comments on commit e669dc3

Please sign in to comment.