Automattic\WooCommerce\Vendor\GraphQL

Deferred::createpublic staticWC 1.0

Deprecated. It is no longer supported and may be removed in future releases. Use new Deferred() instead.

Alias for __construct.

Method of the class: Deferred{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = Deferred::create( $executor ): self;
$executor(Executor) (required)
.

Changelog

Deprecated TODO remove in next major version, use new Deferred() instead

Deferred::create() code WC 10.9.1

public static function create(callable $executor): self
{
    return new self($executor);
}