Difference between revisions of "Thread:requestTermination"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
thread:requestTermination()
 
thread:requestTermination()
</source>
+
</syntaxhighlight>
  
 
Checks whether the thread needs terminated in the thread or it will terminate automatically after a number of Lua instructions.
 
Checks whether the thread needs terminated in the thread or it will terminate automatically after a number of Lua instructions.
  
 
{{Thread}}
 
{{Thread}}

Latest revision as of 15:33, 13 July 2023

Available since: 2018.10
Class: Thread

Description

Sets a flag to terminate thread.

thread:requestTermination()

Checks whether the thread needs terminated in the thread or it will terminate automatically after a number of Lua instructions.