Interop\Async\Loop::setState PHP 메소드

setState() 공개 정적인 메소드

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.
리턴 void
    public static function setState($key, $value)
    {
        $driver = self::$driver ?: self::get();
        $driver->setState($key, $value);
    }