sleep
For platform.
Delay for a specified amount of time.
Command Type
built-in
Signature
> sleep {flags} (duration) ...rest
Parameters
duration: Time to sleep....rest: Additional time duration to sleep.
Input/output types:
| input | output |
|---|---|
| nothing | nothing |
Examples
Sleep for 1 second.
> sleep 1sec
Use multiple arguments to write a duration with multiple units, which is unsupported by duration literals.
> sleep 1min 30sec
Send output after 1 second.
> sleep 1sec; echo done
Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.