EV::Embed#

📦 max

An embed watcher, as EV::embed makes: it lets running one loop also serve another loop’s I/O. These methods name the embedded loop and serve it by hand; the methods all watchers share are EV::Watcher’s.

Synopsis#

my $other = EV::Loop->new(EV::BACKEND_EPOLL);
my $embed = EV::embed $other;    # served automatically
EV::run;                         # runs both

Functions#

Embedding#

set#

Embed another loop instead: $w->set($loop).

other#

The embedded loop, an EV::Loop.

sweep#

Run the embedded loop once, without waiting, handling its pending events - what a watcher made with a callback must do in it.