Properly instantiate LazyPromise
Menno Holtkamp authored 5 years ago
GitHub committed 5 years ago
441 | 441 |
return $deferred->promise();
|
442 | 442 |
};
|
443 | 443 |
|
444 | |
$promise = React\Promise\LazyPromise($factory);
|
|
444 |
$promise = new React\Promise\LazyPromise($factory);
|
445 | 445 |
|
446 | 446 |
// $factory will only be executed once we call then()
|
447 | 447 |
$promise->then(function ($value) {
|