Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 22 lines (16 sloc) 0.299 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/usr/bin/env perl

use warnings;
use strict;
use lib qw(./lib ../lib ./eg);

use Reflex::Timeout;
use ExampleHelpers qw(eg_say);

my $to = Reflex::Timeout->new(
delay => 1,
on_done => \&handle_timeout,
);

Reflex->run_all();
exit;

sub handle_timeout {
eg_say "got timeout";
$to->reset();
}
Something went wrong with that request. Please try again.