pocketmine\ThreadManager::remove PHP Method

remove() public method

public remove ( Worker | Thread $thread )
$thread Worker | Thread
    public function remove($thread)
    {
        if ($thread instanceof Thread or $thread instanceof Worker) {
            unset($this->{spl_object_hash($thread)});
        }
    }