Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Try to fix formatting of a code block
  • Loading branch information
moritz committed Jan 25, 2015
1 parent bacbf30 commit b60db22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Type/Promise.pod
Expand Up @@ -27,10 +27,11 @@ The second is to create your promises yourself with C<Promise.new>. If you
want to ensure that only your code can keep or break the promise, you can use
the C<vow> method to get a unique handle, and call C<keep> or C<break> on it:
=begin code
sub async-get-with-promise($user-agent, $url) {
my $p = Promise.new;
my $v = $p.vow;
# do an asynchronous call on a fictive user agent,
# and return the promise:
$user-agent.async-get($url,
Expand All @@ -43,6 +44,7 @@ the C<vow> method to get a unique handle, and call C<keep> or C<break> on it:
);
return $p;
}
=end code
=head1 Methods
Expand Down

0 comments on commit b60db22

Please sign in to comment.