Builtin thread-local object storage for AsyncTask (#1)

* Added AsyncTask::fetchLocal()
This commit is contained in:
SOFe
2016-11-06 22:02:53 +08:00
committed by GitHub
parent 3b7377370c
commit 074583d104
3 changed files with 101 additions and 1 deletions

View File

@ -146,6 +146,7 @@ class AsyncPool{
if(!$task->hasCancelledRun()){
$task->onCompletion($this->server);
$this->server->getScheduler()->removeLocalComplex($task);
}
$this->removeTask($task);