@@ -34,8 +34,6 @@ Table of Contents
34
34
* [ PromiseInterface::always()] ( #promiseinterfacealways )
35
35
* [ PromiseInterface::cancel()] ( #promiseinterfacecancel )
36
36
* [ Promise] ( #promise-2 )
37
- * [ FulfilledPromise] ( #fulfilledpromise )
38
- * [ RejectedPromise] ( #rejectedpromise )
39
37
* [ Functions] ( #functions )
40
38
* [ resolve()] ( #resolve )
41
39
* [ reject()] ( #reject )
@@ -144,19 +142,15 @@ All consumers are notified by having `$onRejected` (which they registered via
144
142
145
143
The promise interface provides the common interface for all promise
146
144
implementations.
145
+ See [ Promise] ( #promise-2 ) for the only public implementation exposed by this
146
+ package.
147
147
148
148
A promise represents an eventual outcome, which is either fulfillment (success)
149
149
and an associated value, or rejection (failure) and an associated reason.
150
150
151
151
Once in the fulfilled or rejected state, a promise becomes immutable.
152
152
Neither its state nor its result (or error) can be modified.
153
153
154
- #### Implementations
155
-
156
- * [ Promise] ( #promise-2 )
157
- * [ FulfilledPromise] ( #fulfilledpromise )
158
- * [ RejectedPromise] ( #rejectedpromise )
159
-
160
154
#### PromiseInterface::then()
161
155
162
156
``` php
@@ -341,27 +335,6 @@ with that thrown exception as the rejection reason.
341
335
The resolver function will be called immediately, the canceller function only
342
336
once all consumers called the ` cancel() ` method of the promise.
343
337
344
- ### FulfilledPromise
345
-
346
- Creates a already fulfilled promise.
347
-
348
- ``` php
349
- $promise = new React\Promise\FulfilledPromise($value);
350
- ```
351
-
352
- Note, that ` $value ` ** cannot** be a promise. It's recommended to use
353
- [ resolve()] ( #resolve ) for creating resolved promises.
354
-
355
- ### RejectedPromise
356
-
357
- Creates a already rejected promise.
358
-
359
- ``` php
360
- $promise = new React\Promise\RejectedPromise($reason);
361
- ```
362
-
363
- Note, that ` $reason ` ** must** be a ` \Throwable ` .
364
-
365
338
### Functions
366
339
367
340
Useful functions for creating, joining, mapping and reducing collections of
0 commit comments