NAME

ZMQ::Raw::Loop - Loop class

VERSION

version 0.35

DESCRIPTION

A ZMQ::Raw::Loop represents an event loop.

WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).

METHODS

new( $context )

Create a new event loop

run( )

Run the event loop

run_one( )

Run until a single event occurs

add( $item )

Add $item to the event loop. $item should be a ZMQ::Raw::Loop::Event, ZMQ::Raw::Loop::Handle, ZMQ::Raw::Loop::Timer or ZMQ::Raw::Loop::Promise.

remove( $item )

Remove $item from the event loop.

terminate( )

Terminate the event loop

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.