IO::Async::Set - backward-compatibility wrapper around C<IO::Async::Loop>


NAME

IO::Async::Set - backward-compatibility wrapper around IO::Async::Loop

Back to Top


SYNOPSIS

This class should not be used in new code, and is provided for backward compatibility for older applications that still use it. It has been renamed to IO::Async::Loop. Any subclass of this class should simply change

 use base qw( IO::Async::Set );

into

 use base qw( IO::Async::Loop );

The behaviour has not otherwise changed.

Back to Top


DEPRECATED METHODS

This also provides wrappers for methods that have been removed from IO::Async::Set.

$sigproxy = $set->get_sigproxy

This method returns the associated IO::Async::SignalProxy object for the loop. If there is not yet such a proxy, a new one is constructed and added to the loop.

Use of this method is deprecated as not all IO::Async::Loop subclasses will be able to support it. All signal handling should be done by calling attach_signal() or detach_signal() directly.

$manager = $set->get_childmanager

This method returns the associated IO::Async::ChildManager object for the loop. If there is not yet such an object (namely; that the enable_childmanager() method has not yet been called), an exception is thrown.

Use of this method is deprecated as not all IO::Async::Loop subclasses will be able to support it. All child management should be done by calling watch_child(), detach_child(), or spawn_child() directly.

Back to Top


SEE ALSO

Back to Top


AUTHOR

Paul Evans <leonerd@leonerd.org.uk>

Back to Top

 IO::Async::Set - backward-compatibility wrapper around C<IO::Async::Loop>