sleep(1p) equivalent #83
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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).