Thread:getResults

From GiderosMobile
Revision as of 15:33, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: 2018.10
Class: Thread

Description

Gets any results from thread if finished now, or after waiting a supplied number of microseconds.

ok, ... = thread:getResults(wait_time)

Also throws any runtime errors generated by a thread, call periodically to check.

Parameters

wait_time: (number) time in microseconds to wait for result if none available

Return values

ok: (boolean) success
...: (misc) any number of returned variables