HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/ruby-3.0.2/.bundle/gems/rbs-1.0.4/core/thread_group.rbs
# [ThreadGroup](ThreadGroup) provides a means of
# keeping track of a number of threads as a group.
#
# A given [Thread](https://ruby-doc.org/core-2.6.3/Thread.html) object can
# only belong to one [ThreadGroup](ThreadGroup) at a
# time; adding a thread to a new group will remove it from any previous
# group.
#
# Newly created threads belong to the same group as the thread from which
# they were created.
class ThreadGroup < Object
  def add: (Thread thread) -> ThreadGroup

  def enclose: () -> self

  # Returns `true` if the `thgrp` is enclosed. See also
  # [\#enclose](ThreadGroup.downloaded.ruby_doc#method-i-enclose).
  def enclosed?: () -> bool

  def list: () -> ::Array[Thread]
end

ThreadGroup::Default: ThreadGroup