mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Builtin thread-local object storage for AsyncTask (#1)
* Added AsyncTask::fetchLocal()
This commit is contained in:
@ -146,6 +146,7 @@ class AsyncPool{
|
||||
|
||||
if(!$task->hasCancelledRun()){
|
||||
$task->onCompletion($this->server);
|
||||
$this->server->getScheduler()->removeLocalComplex($task);
|
||||
}
|
||||
|
||||
$this->removeTask($task);
|
||||
|
Reference in New Issue
Block a user