Skip to content

Commit

Permalink
better description for subprocess method
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 26, 2016
1 parent 7cc0fb0 commit 6f24a98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -607,9 +607,10 @@ Get L<Mojo::IOLoop::Stream> object for id or turn object into a connection.
my $sp = Mojo::IOLoop->subprocess(sub {...}, sub {...});
my $sp = $loop->subprocess(sub {...}, sub {...});
Create a new subprocess and return a L<Mojo::IOLoop::Subprocess> object for it.
Callbacks will be passed along to L<Mojo::IOLoop::Subprocess/"run">. Note that
this method is EXPERIMENTAL and might change without warning!
Build L<Mojo::IOLoop::Subprocess> object to perform expensive operations in
subprocesses, without blocking the event loop. Callbacks will be passed along to
L<Mojo::IOLoop::Subprocess/"run">. Note that this method is EXPERIMENTAL and
might change without warning!
# Perform an expensive blocking operation in a subprocess
Mojo::IOLoop->subprocess(
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Subprocess.pm
Expand Up @@ -77,7 +77,7 @@ Mojo::IOLoop::Subprocess - Subprocesses
=head1 DESCRIPTION
L<Mojo::IOLoop::Subprocess> allows L<Mojo::IOLoop> to process expensive blocking
L<Mojo::IOLoop::Subprocess> allows L<Mojo::IOLoop> to perform expensive blocking
operations in subprocesses. Note that this module is EXPERIMENTAL and might
change without warning!
Expand Down

0 comments on commit 6f24a98

Please sign in to comment.