# The EvEmbed class

(PECL ev >= 0.2.0)

## Introduction

Used to embed one event loop into another.

## Class synopsis

class EvEmbed extends EvWatcher {
/* Properties */
public $embed;
/* Methods */
public function __construct(
object `$other` ,
callable `$callback` = ?,
mixed `$data` = ?,
int `$priority` = ?
)
final public static function createStopped(
object `$other` ,
callable `$callback` = ?,
mixed `$data` = ?,
int `$priority` = ?
): void
public function set( object `$other` ): void
public function sweep(): void
/* Inherited methods */
public function EvWatcher::clear(): int
public function EvWatcher::feed( int `$revents` ): void
public function EvWatcher::getLoop(): EvLoop
public function EvWatcher::invoke( int `$revents` ): void
public function EvWatcher::keepalive( bool `$value` = ?): bool
public function EvWatcher::setCallback( callable `$callback` ): void
public function EvWatcher::start(): void
public function EvWatcher::stop(): void
}

## Properties

is_active
data
is_pending
priority
embed

## Table of Contents

- EvEmbed::__construct — Constructs the EvEmbed object
- EvEmbed::createStopped — Create stopped EvEmbed watcher object
- EvEmbed::set — Configures the watcher
- EvEmbed::sweep — Make a single, non-blocking sweep over the embedded loop

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open