sleep pauses the current goroutine for at least the specified user duration (in ms). A zero or negative duration returns immediately.
Example:
sleep(250) // sleeps for 250ms Copy
sleep(250) // sleeps for 250ms
Generated using TypeDoc
sleep pauses the current goroutine for at least the specified user duration (in ms). A zero or negative duration returns immediately.
Example: