Skip to content

Commit

Permalink
🚧 integrate Internal\DummyPromise
Browse files Browse the repository at this point in the history
  • Loading branch information
matyo91 committed Apr 22, 2021
1 parent 679e4da commit 9501dbf
Show file tree
Hide file tree
Showing 11 changed files with 424 additions and 185 deletions.
43 changes: 0 additions & 43 deletions examples/00--swooleABCABA.php

This file was deleted.

97 changes: 0 additions & 97 deletions examples/00--swooleSimpleWait.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Adapter/Amp/EventLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class EventLoop implements \M6Web\Tornado\EventLoop
/**
* {@inheritdoc}
*/
public function wait(Promise $promise)
public function wait(Promise $promise): mixed
{
try {
$result = \Amp\Promise\wait(
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/ReactPhp/EventLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(\React\EventLoop\LoopInterface $reactEventLoop)
/**
* {@inheritdoc}
*/
public function wait(Promise $promise)
public function wait(Promise $promise): mixed
{
$value = null;
$isRejected = false;
Expand Down
Loading

0 comments on commit 9501dbf

Please sign in to comment.