ZMQ::Raw::Timer - ZeroMQ Timer class
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.
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.
Check if the timer is running.
Jacques Germishuys <email@example.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.