Skip to content

Commit

Permalink
Merge pull request #163 from dinooo13/async
Browse files Browse the repository at this point in the history
Use reactphp/async instead of clue/reactphp-block
  • Loading branch information
WyriHaximus authored Oct 29, 2022
2 parents 789124f + 65ba13f commit 89067b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react/socket": "^1.12"
},
"require-dev": {
"clue/block-react": "^1.5",
"react/async": "^4 || ^3 || ^2",
"phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion tests/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected function createConnection(LoopInterface $loop)
$factory = new Factory($loop);
$promise = $factory->createConnection($this->getConnectionString());

return \Clue\React\Block\await($promise, $loop, 10.0);
return \React\Async\await(\React\Promise\Timer\timeout($promise, 10.0));
}

protected function getDataTable()
Expand Down

0 comments on commit 89067b2

Please sign in to comment.