Sha256: 5b68f52e9c9f081fa4b4658c2de61cb74f96433e6477f4e974cfe1493b0b1f8c

Contents?: true

Size: 730 Bytes

Versions: 44

Compression:

Stored size: 730 Bytes

Contents

# [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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
rbs-2.0.0 core/thread_group.rbs
rbs-2.0.0.pre2 core/thread_group.rbs
rbs-2.0.0.pre1 core/thread_group.rbs
rbs-1.8.1 core/thread_group.rbs
rbs-1.8.0 core/thread_group.rbs
rbs-1.7.1 core/thread_group.rbs
rbs-1.7.0 core/thread_group.rbs
rbs-1.7.0.beta.5 core/thread_group.rbs
rbs-1.7.0.beta.4 core/thread_group.rbs
rbs-1.7.0.beta.3 core/thread_group.rbs
rbs-1.7.0.beta.2 core/thread_group.rbs
rbs-1.7.0.beta.1 core/thread_group.rbs
rbs-1.6.2 core/thread_group.rbs
rbs-1.6.1 core/thread_group.rbs
rbs-1.6.0 core/thread_group.rbs
rbs-1.5.1 core/thread_group.rbs
rbs-1.5.0 core/thread_group.rbs
rbs-1.4.0 core/thread_group.rbs
rbs-1.3.3 core/thread_group.rbs
rbs-1.3.2 core/thread_group.rbs