sleep(1p) pauses for a certain number of seconds, usually using the sleep(2) UNIX system call, which blocks a given number of seconds. It's useful for shell scripts (while true; do test -e file && break || sleep 1; done checks for a file at one-second intervals, for example).
Should equivalent functionality be implemented in Bonsai? How?
I was bored and already implemented sleep(1p) in Rust, using std::thread::sleep(), based on a program I did in C. This is without extensions (unit suffixes are popular but not necessary; rpn 5 60 '*' | xargs sleep does 5 minutes, for example).
sleep(1p) pauses for a certain number of seconds, usually using the sleep(2) UNIX system call, which blocks a given number of seconds. It's useful for shell scripts (`while true; do test -e file && break || sleep 1; done` checks for a file at one-second intervals, for example).
Should equivalent functionality be implemented in Bonsai? How?
I was bored and already [implemented sleep(1p) in Rust](https://git.tebibyte.media/bonsai/coreutils/src/branch/sleep/src/sleep.rs), using `std::thread::sleep()`, based on [a program I did in C](https://git.tebibyte.media/trinity/src/src/commit/6ca7b9e61295477aa483bb98a18aca8b6a04e842/sleep/sleep.c). This is without extensions (unit suffixes are popular but not necessary; `rpn 5 60 '*' | xargs sleep` does 5 minutes, for example).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
sleep(1p) pauses for a certain number of seconds, usually using the sleep(2) UNIX system call, which blocks a given number of seconds. It's useful for shell scripts (
while true; do test -e file && break || sleep 1; donechecks for a file at one-second intervals, for example).Should equivalent functionality be implemented in Bonsai? How?
I was bored and already implemented sleep(1p) in Rust, using
std::thread::sleep(), based on a program I did in C. This is without extensions (unit suffixes are popular but not necessary;rpn 5 60 '*' | xargs sleepdoes 5 minutes, for example).