1 | <?php |
||
17 | class PromiseFactory implements PromiseFactoryInterface |
||
18 | { |
||
19 | /** |
||
20 | * @param callable $resolver |
||
21 | * @param callable|null $canceller |
||
22 | * |
||
23 | * @return PromiseAdapter |
||
24 | */ |
||
25 | public function create(callable $resolver, callable $canceller = null) |
||
34 | |||
35 | /** |
||
36 | * @param ReactPromise $adaptee |
||
37 | * |
||
38 | * @return PromiseAdapter |
||
39 | */ |
||
40 | public function createFromAdaptee($adaptee) |
||
44 | } |
||
45 |