Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 23 lines (18 sloc) 0.323 kb
a94504f @rcaputo Commit experimental things for others to consider.
authored
1 #!/usr/bin/env perl
2 # vim: ts=2 sw=2 noexpandtab
3
4 use warnings;
5 use strict;
6 use lib qw(./lib ../lib ./eg);
7
8 {
9 package Foo;
10 use Moose;
11 extends 'Reflex::Timeout';
12 use ExampleHelpers qw(eg_say);
13
14 sub on_done {
15 eg_say "custom got timeout";
16 $_[0]->reset();
17 }
18 }
19
20 my $to = Foo->new(delay => 1);
21 Reflex->run_all();
22 exit;
Something went wrong with that request. Please try again.