kyurzburg / asynctaskcb
dev-main
2026-01-29 13:58 UTC
This package is auto-updated.
Last update: 2026-03-24 10:07:50 UTC
README
How to use?
Step 1: Create a asynctask that extends AsyncCallbackTask
use kyurzburg\asynctaskcb\AsyncCallbackTask; class ExampleTask extends AsyncCallbackTask{ public function onRun() : void{ $this->setResult("result"); } }
Step 2: Send it
AsyncTaskCB::new(new ExampleTask(), function(mixed $result){ #Your code here });