ThreadContainers

This class consists exclusively of static methods to support groupings of threads.

Types

Link copied to clipboard

Root container that "contains" all platform threads not started in a container. It may include all virtual threads started directly with the Thread API.

Functions

Link copied to clipboard

Returns given thread container's "children".

Link copied to clipboard
fun container(thread: Job): ThreadContainer?

Returns the thread container that the given Thread is in or the root container if not started in a container.

Link copied to clipboard

Removes a thread container from being tracked by specifying the key returned when the thread container was registered.

Link copied to clipboard

Returns the parent of the given thread container.

Link copied to clipboard

Registers a thread container to be tracked this class, returning a key that is used to remove it from the registry.

Link copied to clipboard

Returns the root thread container.

Link copied to clipboard

Returns true if all threads are tracked.