Category : asynchronous

I’m trying to use the spatie/async lib for my rabbitMQ listener (based on a symfony command). Here is the code that I use: $this->pool = Pool::create()->sleepTime(5000)->concurrency(1000); $this->pool->add(function () use ($serializedAction) { echo "We’re in add of pooln"; $this->client->send($serializedAction); return true; }) ->then(function ($output) { echo "Message sent to swoolen"; })->catch(function ($exception) { dump($exception); }); My ..

Read more

I’m using this package: https://async-aws.com/integration/laravel.html#illuminate-filesystem But it seems using s3 and async-aws-s3 as filesystem driver have no difference. I’ve tested uploading using Storage::put() with large and small file size and the execution time is the same (15mb around 1.6sec) – (0.5mb around 0.5sec).. Am I using this correctly? Is changing async-aws-s3 enough to make Storage::put() ..

Read more

I’m developing a web app with vanilla Javascript/PHP, which is mostly supposed to be used on desktop. The user can create and edit notes, and I added an option to make it possible to dictate your notes from microphone input using webkitSpeechRecognition. I’d like to enable the user to use their mobile device’s microphone in ..

Read more