function Promise::__construct
Same name in this branch
- 11.1.x vendor/react/promise/src/Promise.php \React\Promise\Promise::__construct()
- 11.1.x vendor/php-http/guzzle7-adapter/src/Promise.php \Http\Adapter\Guzzle7\Promise::__construct()
Parameters
callable $waitFn Fn that when invoked resolves the promise.:
callable $cancelFn Fn that when invoked cancels the promise.:
File
-
vendor/
guzzlehttp/ promises/ src/ Promise.php, line 27
Class
- Promise
- Promises/A+ implementation that avoids recursion when possible.
Namespace
GuzzleHttp\PromiseCode
public function __construct(?callable $waitFn = null, ?callable $cancelFn = null) {
$this->waitFn = $waitFn;
$this->cancelFn = $cancelFn;
}