Use this function to stop the RBXMod's execution and handle exactly one call. If no calls are on the queue, it waits until a call is received. Yield()
transfers script execution to the handler set with SetHandler(callback)
and sets the parameters to the arguments of the call. Once the handler returns, Yield()
returns.
Definition
void Yield (void)
Arguments
No arguments
Returns
No return values
Example
local function echo(...) return ... end RBXMod.SetHandler(echo) while true do RBXMod.Yield() end