retrieve

@Contract(pure = true)
open fun retrieve(thread: Thread): Thread

Retrieves the updated thread object from the given thread.

This method returns a new thread object wrapper. The thread parameter is used only for Thread.id. This method is useful for getting updated information about a thread's status or values.

Return

The retrieved thread

Parameters

thread

The thread to retrieve


@Contract(pure = true)
abstract fun retrieve(id: String): Thread

Retrieves the thread with the given id.

Return

The retrieved thread

Parameters

id

The id of the thread to retrieve