```{index} single: EV::Embed ``` # EV::Embed ```{pperl-module-badges} EV::Embed ``` 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 ```perl 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.