on ecfde25 help sign in
21 lines 792 B history raw
1---
2sort: 2
3---
5`%behn`
6=======
8Our simple timer.
10It allows vanes and applications to set and timer events, which are
11managed in a simple priority queue. `%behn` produces effects to start
12the unix timer, and when the requested `%behn` passes, unix sends wake
13events to `%behn`, which time routes back to original sender. We don't
14guarantee that a timer event will happen at exactly the `%behn` it was
15set for, or even that it'll be particularly close. A timer event is a
16request to not be woken until after the given time.
18`%eyre` uses `%behn` for timing out sessions, and `%clay` uses `%behn`
19for keeping track of time-specified file requests. `%ames` should
20probably use `%behn` to keep track of things like network timeouts and
21retry timing, but it currently uses its own alarm system.