Skip to content

Commit f16348c

Browse files
authored
Merge pull request #143 from clue-labs/deprecate-lazypromise
Mark LazyPromise as deprecated for Promise v2
2 parents 43896aa + 683c343 commit f16348c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ Note, that `$reason` **cannot** be a promise. It's recommended to use
431431

432432
### LazyPromise
433433

434+
> Deprecated in v2.8.0: LazyPromise is deprecated and should not be used anymore.
435+
434436
Creates a promise which will be lazily initialized by `$factory` once a consumer
435437
calls the `then()` method.
436438

src/LazyPromise.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace React\Promise;
44

5+
/**
6+
* @deprecated 2.8.0 LazyPromise is deprecated and should not be used anymore.
7+
*/
58
class LazyPromise implements ExtendedPromiseInterface, CancellablePromiseInterface
69
{
710
private $factory;

0 commit comments

Comments
 (0)