mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Revert "Use Collectable class on AsyncTask, removed task collection workaround on ServerScheduler"
This reverts commit 0dba14074a
.
This commit is contained in:
@ -28,7 +28,7 @@ use pocketmine\Server;
|
||||
*
|
||||
* WARNING: Do not call PocketMine-MP API methods from other Threads!!
|
||||
*/
|
||||
abstract class AsyncTask extends \Collectable{
|
||||
abstract class AsyncTask extends \Threaded{
|
||||
|
||||
protected $complete = null;
|
||||
protected $finished = null;
|
||||
@ -43,7 +43,6 @@ abstract class AsyncTask extends \Collectable{
|
||||
$this->onRun();
|
||||
|
||||
$this->finished = true;
|
||||
$this->setGarbage();
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user