Skip to main content

sleep

Description:

  Yield the coroutine for a specified duration.

Signature:

sleep: function(duration?: number)

Parameters:

ParameterTypeDescription
durationnumber[optional] The duration to yield for, in seconds. If nil, the coroutine will be yielded for one frame.