Sha256: 61bf40cf36c44f0413e0600bfeb26d0bc99ddf2bfc292f5038a8d8e7a6ca77eb
Contents?: true
Size: 732 Bytes
Versions: 19
Compression:
Stored size: 732 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
19 entries across 19 versions & 2 rubygems