Merge pull request #77980 from YeldhamDev/not_so_disposable
Remove inaccuracy about re-using `Thread`s in its doc
This commit is contained in:
commit
176217c9d5
@ -54,7 +54,6 @@
|
|||||||
Joins the [Thread] and waits for it to finish. Returns the output of the [Callable] passed to [method start].
|
Joins the [Thread] and waits for it to finish. Returns the output of the [Callable] passed to [method start].
|
||||||
Should either be used when you want to retrieve the value returned from the method called by the [Thread] or before freeing the instance that contains the [Thread].
|
Should either be used when you want to retrieve the value returned from the method called by the [Thread] or before freeing the instance that contains the [Thread].
|
||||||
To determine if this can be called without blocking the calling thread, check if [method is_alive] is [code]false[/code].
|
To determine if this can be called without blocking the calling thread, check if [method is_alive] is [code]false[/code].
|
||||||
[b]Note:[/b] After the [Thread] finishes joining it will be disposed. If you want to use it again you will have to create a new instance of it.
|
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
Loading…
Reference in New Issue
Block a user