Skip to content

Instantly share code, notes, and snippets.

@deppp
Created October 10, 2009 00:40
Show Gist options
  • Save deppp/206480 to your computer and use it in GitHub Desktop.
Save deppp/206480 to your computer and use it in GitHub Desktop.
use common::sense;
use EV;
use AnyEvent;
use AnyEvent::CouchDB;
my $get_all_dbs = sub {
my $couch = couch('http://localhost:5984/');
my $data = $couch->all_dbs->recv;
};
my $w1; $w1 = AE::timer(1, 0.25, $get_all_dbs);
my $w2; $w2 = AE::timer(0, 0.25, $get_all_dbs);
EV::loop;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment