Difference between revisions of "Thread:resume"

(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' 2018.10<br/> '''<translate>Class</translate>:''' Thread<br/> === <translat...")
 
 
Line 16: Line 16:
 
'''ok: ''' ''(boolean)''  <translate>success</translate><br/>
 
'''ok: ''' ''(boolean)''  <translate>success</translate><br/>
 
'''...: ''' ''(misc)''  <translate>arguments provided by yield call</translate><br/>
 
'''...: ''' ''(misc)''  <translate>arguments provided by yield call</translate><br/>
 +
 +
{{Thread}}

Latest revision as of 23:59, 11 February 2020


Available since: 2018.10
Class: Thread

Description

Resumes a thread that has been yielded (only a valid call outside a thread). It returns arguments passed by the yield call and arguments supplied to resume are returned by the yield call to the thread.

local ok, ... = thread:resume(...)

Parameters

...: (misc) arguments that will be returned by yield call that we resumed

Return values

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