public function Promise::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/src/Promise.php \GuzzleHttp\Promise\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 22
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;
}