Revert "Use Collectable class on AsyncTask, removed task collection workaround on ServerScheduler"

This reverts commit 0dba14074a.
This commit is contained in:
Shoghi Cervantes
2014-10-11 00:03:46 +02:00
parent 645c00b2f7
commit baf06dc363
3 changed files with 13 additions and 3 deletions

View File

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