async icon indicating copy to clipboard operation
async copied to clipboard

Easily run code asynchronously

Results 24 async issues
Sort by recently updated
recently updated
newest added

This is the test case for the changes done in commit link : https://github.com/spatie/async/commit/56dae5f7f8a9865ab5d4e5a9e9921068042f1aa8 https://github.com/spatie/async/pull/188/files .

When the Output Length is passed to the `$pool->add` method it ignores it and throws return length is too long, When ParentRuntime::createProcess is called directly with the $longerContentLength then it...

Will spatie/async be supported with PHP 8.1? As far as I can see, it's not compatible to PHP 8.1 yet...

**Piece of code that I am trying to execute** ```php use Spatie\Async\Pool; $pool = Pool::create(); foreach (range(1, 5) as $i) { $pool[] = async(function () { usleep(random_int(10, 1000)); return 2;...

Hi I want to handle parallel process with async task here is my code on task: ``` $protected $arrayData; $protected $services; $protected $result; public function __contruct(arrayData) { } public function...

I can't use this library inside a symfony project, below the stack trace: TypeError: Cannot assign Laravel\SerializableClosure\Serializers\Native to property Symfony\Component\HttpFoundation\Session\SessionBagProxy::$usageReporter of type ?Closure at vendor/laravel/serializable-closure/src/Serializers/Native.php:501 at ReflectionProperty->setValue(object(SessionBagProxy), object(Native)) (vendor/laravel/serializable-closure/src/Serializers/Native.php:501) at...

A couple of quality of life functions to keep track of pool status, though I would very much like https://github.com/spatie/async/pull/178 to be merged as well. :)

I've been banging my head against why my functions passed to the pool are running synchronously as they are passed in. In my search, I came across spatie's other cool...

Hello, As this package requires at least PHP 7.4, I think we could generalized, as much as possible, [Typed properties](https://wiki.php.net/rfc/typed_properties_v2) implementation. This is the main goal of this PR. Second...

Hello the Spatie team I've discovered your packages ('async', and 'fork') and played with them since yesterday. I love 'async', and by trying many study cases, I've found perharps a...