Thread.yield

From GiderosMobile
Revision as of 13:29, 4 October 2018 by PaulR (talk | contribs) (Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' 2018.10<br/> '''<translate>Class</translate>:''' Thread<br/> === <translat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: 2018.10
Class: Thread

Description

Pauses executions of thread (only a valid call inside thread function). Supplied arguments can be retreived by a subsequent call to resume.

local ok, ... = Thread.yield(...)

Parameters

...: (misc) arguments for next resume call to collect as return values

Return values

ok: (boolean) success
...: (misc) arguments provided by resume call