Interop\Async\Loop::setState PHP Méthode

setState() public static méthode

This can be used to store loop bound information. Stored information is package private. Packages MUST NOT retrieve the stored state of other packages. Packages MUST use the following prefix for keys: vendor.package.
public static setState ( string $key, mixed $value ) : void
$key string The namespaced storage key.
$value mixed The value to be stored.
Résultat void
    public static function setState($key, $value)
    {
        $driver = self::$driver ?: self::get();
        $driver->setState($key, $value);
    }