Skip to content

Commit

Permalink
no need to mention what Mojo::Promise objects are used for
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 4, 2017
1 parent 540f7d3 commit 43777bf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -767,7 +767,7 @@ implied). You can also append a callback to perform requests non-blocking.
my $promise = $ua->delete_p('http://example.com');
Same as L</"delete">, but performs all requests non-blocking and returns a
L<Mojo::Promise> object to be used as a promise instead of accepting a callback.
L<Mojo::Promise> object instead of accepting a callback.
$ua->delete_p('http://example.com' => json => {a => 'b'})->then(sub {
my $tx = shift;
Expand Down Expand Up @@ -802,7 +802,7 @@ perform requests non-blocking.
my $promise = $ua->get_p('http://example.com');
Same as L</"get">, but performs all requests non-blocking and returns a
L<Mojo::Promise> object to be used as a promise instead of accepting a callback.
L<Mojo::Promise> object instead of accepting a callback.
$ua->get_p('http://example.com' => json => {a => 'b'})->then(sub {
my $tx = shift;
Expand Down Expand Up @@ -837,7 +837,7 @@ implied). You can also append a callback to perform requests non-blocking.
my $promise = $ua->head_p('http://example.com');
Same as L</"head">, but performs all requests non-blocking and returns a
L<Mojo::Promise> object to be used as a promise instead of accepting a callback.
L<Mojo::Promise> object instead of accepting a callback.
$ua->head_p('http://example.com' => json => {a => 'b'})->then(sub {
my $tx = shift;
Expand Down Expand Up @@ -872,7 +872,7 @@ implied). You can also append a callback to perform requests non-blocking.
my $promise = $ua->options_p('http://example.com');
Same as L</"options">, but performs all requests non-blocking and returns a
L<Mojo::Promise> object to be used as a promise instead of accepting a callback.
L<Mojo::Promise> object instead of accepting a callback.
$ua->options_p('http://example.com' => json => {a => 'b'})->then(sub {
my $tx = shift;
Expand Down Expand Up @@ -907,7 +907,7 @@ implied). You can also append a callback to perform requests non-blocking.
my $promise = $ua->patch_p('http://example.com');
Same as L</"patch">, but performs all requests non-blocking and returns a
L<Mojo::Promise> object to be used as a promise instead of accepting a callback.
L<Mojo::Promise> object instead of accepting a callback.
$ua->patch_p('http://example.com' => json => {a => 'b'})->then(sub {
my $tx = shift;
Expand Down Expand Up @@ -942,7 +942,7 @@ implied). You can also append a callback to perform requests non-blocking.
my $promise = $ua->post_p('http://example.com');
Same as L</"post">, but performs all requests non-blocking and returns a
L<Mojo::Promise> object to be used as a promise instead of accepting a callback.
L<Mojo::Promise> object instead of accepting a callback.
$ua->post_p('http://example.com' => json => {a => 'b'})->then(sub {
my $tx = shift;
Expand Down Expand Up @@ -977,7 +977,7 @@ perform requests non-blocking.
my $promise = $ua->put_p('http://example.com');
Same as L</"put">, but performs all requests non-blocking and returns a
L<Mojo::Promise> object to be used as a promise instead of accepting a callback.
L<Mojo::Promise> object instead of accepting a callback.
$ua->put_p('http://example.com' => json => {a => 'b'})->then(sub {
my $tx = shift;
Expand Down Expand Up @@ -1007,7 +1007,7 @@ to perform requests non-blocking.
my $promise = $ua->start_p(Mojo::Transaction::HTTP->new);
Same as L</"start">, but performs all requests non-blocking and returns a
L<Mojo::Promise> object to be used as a promise instead of accepting a callback.
L<Mojo::Promise> object instead of accepting a callback.
my $tx = $ua->build_tx(GET => 'http://example.com');
$ua->start_p($tx)->then(sub {
Expand Down

0 comments on commit 43777bf

Please sign in to comment.