NAME
ZMQ::Raw::Timer - ZeroMQ Timer class
VERSION
version 0.33
DESCRIPTION
A ZMQ::Raw::Timer represents a timer.
WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).
SYNOPSIS
use ZMQ::Raw;
# Create a 200ms timer
my $timer = ZMQ::Raw::Timer->new ($ctx,
after => 200
);
METHODS
new( $context, %args )
Create a new timer class. %args
may have 2 optional members, after
to specify the number of milliseconds before the timer will initially fire, and/or interval
if the timer has to fire repeatedly.
id ()
Get the timer's id
reset( )
Reset the timer
cancel( )
Cancel the timer
expire( )
Expire the timer
socket( )
Get the underlying ZMQ::Raw::Socket
that will be readable when the timer has elapsed.
running( )
Check if the timer is running.
AUTHOR
Jacques Germishuys <jacquesg@striata.com>
LICENSE AND COPYRIGHT
Copyright 2017 Jacques Germishuys.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.