Skip to content

Thread ​

abstract class · pocketmine\thread\Thread · source

Extends pmmp\thread\Thread

Specialized Thread class aimed at PocketMine-MP-related usages. It handles setting up autoloading and error handling.

Note: You probably don't need a thread unless you're doing something in it that's expected to last a long time (or indefinitely). For CPU-demanding tasks that take a short amount of time, consider using AsyncTasks instead to make better use of the CPU.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.