container

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.

Throws

if the thread has not been started