VanillaDataFetchThread 5.46.0
Extends Thread
Runs VanillaDataFetcher::fetch() away from the main thread (downloads + Mojang's data generator take minutes). Touches the lock file while working so other processes can tell a live job from a dead one.
Methods
__construct()
php
public function __construct(string $root, \pocketmine\thread\log\ThreadSafeLogger $logger)getError()
php
public function getError() : ?stringisDone()
php
public function isDone() : boolonRun() protected
php
protected function onRun() : void