ZMQ::Raw::Timer - ZeroMQ Timer class
version 0.39
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).
use ZMQ::Raw; # Create a 200ms timer my $timer = ZMQ::Raw::Timer->new ($ctx, after => 200 );
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.
%args
after
interval
Get the timer's id
Reset the timer
Cancel the timer
Expire the timer
Get the underlying ZMQ::Raw::Socket that will be readable when the timer has elapsed.
ZMQ::Raw::Socket
Check if the timer is running.
Get and/or adjust the timer's interval. $interval should be greater than zero.
$interval
Jacques Germishuys <jacquesg@striata.com>
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.
To install ZMQ::Raw, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ZMQ::Raw
CPAN shell
perl -MCPAN -e shell install ZMQ::Raw
For more information on module installation, please visit the detailed CPAN module installation guide.