Coroutine.isyieldable

From GiderosMobile
Revision as of 23:43, 22 January 2023 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2022.3<br/> '''Class:''' coroutine<br/> === Description === Returns true if the coroutine this function is called within can safe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2022.3
Class: coroutine

Description

Returns true if the coroutine this function is called within can safely yield.

(boolean) = coroutine.isyieldable()
Yielding a coroutine inside metamethods or C functions is prohibited, with the exception of pcall and xpcall

Return values

Returns (boolean) result