Skip to content

Commit 4bc784e

Browse files
authored
Merge pull request #220 from clue-labs/no-promisor
[RFC] Remove unneeded `PromisorInterface`
2 parents 8485913 + 55f5d38 commit 4bc784e

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ Table of Contents
4545
* [some()](#some)
4646
* [map()](#map)
4747
* [reduce()](#reduce)
48-
* [PromisorInterface](#promisorinterface)
4948
4. [Examples](#examples)
5049
* [How to use Deferred](#how-to-use-deferred)
5150
* [How promise forwarding works](#how-promise-forwarding-works)
@@ -486,12 +485,6 @@ promises and/or values, and `$reduceFunc` may return either a value or a
486485
promise, *and* `$initialValue` may be a promise or a value for the starting
487486
value.
488487

489-
### PromisorInterface
490-
491-
The `React\Promise\PromisorInterface` provides a common interface for objects
492-
that provide a promise. `React\Promise\Deferred` implements it, but since it
493-
is part of the public API anyone can implement it.
494-
495488
Examples
496489
--------
497490

src/Deferred.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace React\Promise;
44

5-
final class Deferred implements PromisorInterface
5+
final class Deferred
66
{
77
private $promise;
88
private $resolveCallback;

src/PromisorInterface.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)