NAME

App::ChatWorkDescriber::Ticker - An time ticker class

SYNOPSIS

use App::ChatWorkDescriber::Ticker;
my $ticker = App::ChatWorkDescriber::Ticker->new;
$ticker->on( tick => sub { warn "tick" } );
$ticker->loop;

DESCRIPTION

This class tickes time to when the rooms check the new messages.

Rooms should be registered to the tick instance to fetch new messages. Then the rooms fetches new messages at the ticker emits tick event.