Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (19 sloc) 0.385 kb
d75f256 @rcaputo Begin documentation.
authored
1 #!/usr/bin/env perl
2
3 use warnings;
4 use strict;
9e56da9 @rcaputo Add the examples to the distribution, and ensure they run in their new h...
authored
5 use lib qw(../lib);
d75f256 @rcaputo Begin documentation.
authored
6
7 {
afd7c10 @rcaputo Fix tab damage. No significant changes.
authored
8 package App;
9 use Moose;
1f5ed27 @rcaputo Rename Reflex::Role::Object to Reflex::Role::Reactive; Reflex::Object to...
authored
10 extends 'Reflex::Base';
bbf149d @rcaputo Create Reflex::Role::Interval, and reify it as Reflex::Interval. Needed...
authored
11 use Reflex::Interval;
6eae87c @rcaputo Add "emits" and "observes" attribute declarations.
authored
12 use Reflex::Trait::Observed;
d75f256 @rcaputo Begin documentation.
authored
13
6eae87c @rcaputo Add "emits" and "observes" attribute declarations.
authored
14 observes ticker => (
15 isa => 'Reflex::Interval',
16 setup => { interval => 1, auto_repeat => 1 },
afd7c10 @rcaputo Fix tab damage. No significant changes.
authored
17 );
d75f256 @rcaputo Begin documentation.
authored
18
afd7c10 @rcaputo Fix tab damage. No significant changes.
authored
19 sub on_ticker_tick {
20 print "tick at ", scalar(localtime), "...\n";
21 }
d75f256 @rcaputo Begin documentation.
authored
22 }
23
24 exit App->new()->run_all();
Something went wrong with that request. Please try again.