Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

s/safe_cb/async_cb/g

  • Loading branch information...
commit 18a2833725b9ec73bc9388b35fab8986f2cd73fd 1 parent 1435550
Tatsuhiko Miyagawa authored
2  eg/demo.pl
View
@@ -41,7 +41,7 @@ package FeedHandler;
sub get {
my($self, $query) = @_;
my $client = Tatsumaki::HTTPClient->new;
- $client->get("http://friendfeed-api.com/v2/feed/$query", $self->safe_cb(sub { $self->on_response(@_) }));
+ $client->get("http://friendfeed-api.com/v2/feed/$query", $self->async_cb(sub { $self->on_response(@_) }));
}
sub on_response {
2  lib/Tatsumaki/Handler.pm
View
@@ -78,7 +78,7 @@ sub supported_method {
return $supported->{$method};
}
-sub safe_cb {
+sub async_cb {
my $self = shift;
my $cb = shift;
return sub {
2  t/handler/exception.t
View
@@ -22,7 +22,7 @@ __PACKAGE__->asynchronous(1);
sub get {
my $self = shift;
- my $t; $t = AE::timer 0, 0, $self->safe_cb(sub {
+ my $t; $t = AE::timer 0, 0, $self->async_cb(sub {
Tatsumaki::Error::HTTP->throw(500, "Oops");
undef $t;
});
Please sign in to comment.
Something went wrong with that request. Please try again.