Codebase list php-react-promise / ae9028c
Properly instantiate LazyPromise Menno Holtkamp authored 5 years ago GitHub committed 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
441441 return $deferred->promise();
442442 };
443443
444 $promise = React\Promise\LazyPromise($factory);
444 $promise = new React\Promise\LazyPromise($factory);
445445
446446 // $factory will only be executed once we call then()
447447 $promise->then(function ($value) {