| 1 | <?php |
||
| 15 | class PromiseFactory implements PromiseFactoryInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @param callable $resolver |
||
| 19 | * @param callable|null $canceller |
||
| 20 | * |
||
| 21 | * @return PromiseAdapter |
||
| 22 | */ |
||
| 23 | public function create(callable $resolver, callable $canceller = null) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param ReactPromise $adaptee |
||
| 35 | * |
||
| 36 | * @return PromiseAdapter |
||
| 37 | */ |
||
| 38 | public function createFromAdaptee($adaptee) |
||
| 42 | } |
||
| 43 |