Permalink
Browse files

s/safe_cb/async_cb/g

  • Loading branch information...
1 parent 1435550 commit 18a2833725b9ec73bc9388b35fab8986f2cd73fd @miyagawa committed Nov 4, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 eg/demo.pl
  2. +1 −1 lib/Tatsumaki/Handler.pm
  3. +1 −1 t/handler/exception.t
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 {
@@ -78,7 +78,7 @@ sub supported_method {
return $supported->{$method};
}
-sub safe_cb {
+sub async_cb {
my $self = shift;
my $cb = shift;
return sub {
@@ -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;
});

0 comments on commit 18a2833

Please sign in to comment.