mirror of
https://github.com/danog/parallel-functions.git
synced 2024-11-26 12:24:52 +01:00
Update to use laravel/serializable-closure (#29)
This commit is contained in:
parent
cd73d841d7
commit
221ee7cc8b
@ -13,7 +13,7 @@ composer require amphp/parallel-functions
|
||||
|
||||
## Requirements
|
||||
|
||||
- PHP 7.0+
|
||||
- PHP 7.4+
|
||||
|
||||
## Documentation
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
"php": ">=7.4",
|
||||
"amphp/parallel": "^1.1",
|
||||
"amphp/amp": "^2.0.3",
|
||||
"opis/closure": "^3.0.7"
|
||||
"laravel/serializable-closure": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"amphp/php-cs-fixer-config": "v2.x-dev",
|
||||
|
@ -6,7 +6,7 @@ use Amp\MultiReasonException;
|
||||
use Amp\Parallel\Sync\SerializationException;
|
||||
use Amp\Parallel\Worker\Pool;
|
||||
use Amp\Promise;
|
||||
use Opis\Closure\SerializableClosure;
|
||||
use Laravel\SerializableClosure\SerializableClosure;
|
||||
use function Amp\call;
|
||||
use function Amp\Parallel\Worker\enqueue;
|
||||
use function Amp\Promise\any;
|
||||
|
Loading…
Reference in New Issue
Block a user