Use this function to find out if any calls are queued. Commonly used before a Yield()
to know if Yield()
will wait until a call is received or immediately handle the next call on the queue. Can also be used before a Peek()
call to differentiate between a call with no arguments and no call on the queue.
Definition
bool Ready (void)
Arguments
No arguments
Returns
true
if call queue has any calls queued, false
otherwise.
Example
while true do -- While there is a call to handle while RBXMod.Ready() then -- handle them RBXMod.Yield() end -- otherwise perform important tasks ... end