Difference between revisions of "Coroutine.running"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2022.3<br/> '''Class:''' coroutine<br/> === Description === Returns the running coroutine. <source lang="lua"> (coroutine) = coro...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns the running coroutine.
 
Returns the running coroutine.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(coroutine) = coroutine.running()
 
(coroutine) = coroutine.running()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===

Latest revision as of 14:26, 13 July 2023

Available since: Gideros 2022.3
Class: coroutine

Description

Returns the running coroutine.

(coroutine) = coroutine.running()

Return values

Returns (thread) the running coroutine