Merge pull request #77980 from YeldhamDev/not_so_disposable

Remove inaccuracy about re-using `Thread`s in its doc
This commit is contained in:
Rémi Verschelde 2023-06-08 16:55:55 +02:00
commit 176217c9d5
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -54,7 +54,6 @@
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].
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>
</method>
</methods>