The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

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.

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.

SEE ALSO

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>