wait

Awaits thread for 'n' duration before running again.

API available only within a valid thread.

━ Syntax

[bool status] wait(int seconds)

vEngine.thread.create(function() --Creates a new thread
    print("Hello") --Prints "Hello"
    vEngine.thread.wait(5) --Waits 5 second before printing "There"
    print("There") --Prints "There"
end)

Last updated