kyurzburg/asynctaskcb

Maintainers

Package info

github.com/kyurzburg/AsyncTaskCallback

pkg:composer/kyurzburg/asynctaskcb

Statistics

Installs: 24

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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
});