8000 Use reactphp/async instead of clue/reactphp-block · friends-of-reactphp/mysql@65ba13f · GitHub
[go: up one dir, main page]

Skip to content

Commit 65ba13f

Browse files
committed
Use reactphp/async instead of clue/reactphp-block
1 parent c36b92f commit 65ba13f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"react/socket": "^1.12"
1414
},
1515
"require-dev": {
16-
"clue/block-react": "^1.5",
16+
"react/async": "^4 || ^3 || ^2",
1717
"phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35"
1818
},
1919
"autoload": {

tests/BaseTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function createConnection(LoopInterface $loop)
3737
$factory = new Factory($loop);
3838
$promise = $factory->createConnection($this->getConnectionString());
3939

40-
return \Clue\React\Block\await($promise, $loop, 10.0);
40+
return \React\Async\await(\React\Promise\Timer\timeout($promise, 10.0));
4141
}
4242

4343
protected function getDataTable()

0 commit comments

Comments
 (0)
0