Skip to main content

wait

Description:

  Wait until a condition is true in a coroutine.

Signature:

wait: function(condition: function(): boolean)

Parameters:

ParameterTypeDescription
condfunctionA function that returns true when the condition is met.