From 01de3fbcc49ea6baa311e2f358e3b540325f0e45 Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 7 May 2026 02:41:35 -0500 Subject: async:detach() docs --- docs/thread/async.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/thread') diff --git a/docs/thread/async.md b/docs/thread/async.md index a13b18b..60c764a 100644 --- a/docs/thread/async.md +++ b/docs/thread/async.md @@ -49,3 +49,10 @@ waits for the thread to internally call res:testclose or exit async:clean() calls the __gc metamethod, will call async:kill() if it is still running + +### async:detach + +async:detach() + +prevents lua from discarding the thread on its own (removes __gc) and runs the code after the thread has exited instead. +this has the side effect of not allowing async:await() to be called when the thread is done -- cgit v1.2.3