◆ add()
- Parameters
-
53 if($thread instanceof
Thread or $thread instanceof
Worker){
54 $this->{spl_object_hash($thread)} = $thread;
◆ getAll()
- Returns
- Worker[]|Thread[]
72 foreach($this as $key => $thread){
73 $array[$key] = $thread;
◆ getInstance()
◆ init()
39 self::$instance =
new ThreadManager();
◆ remove()
- Parameters
-
62 if($thread instanceof
Thread or $thread instanceof
Worker){
63 unset($this->{spl_object_hash($thread)});
The documentation for this class was generated from the following file:
- src/pocketmine/ThreadManager.php