on 705ca06 help sign in
21 lines 960 B history raw
1+++
2title = "Behn"
3weight = 3
4template = "doc.html"
5+++
6Our simple timer.
8It allows vanes and applications to set and timer events, which are
9managed in a simple priority queue. `%behn` produces effects to start
10the unix timer, and when the requested `%behn` passes, unix sends wake
11events to `%behn`, which time routes back to original sender. We don't
12guarantee that a timer event will happen at exactly the `%behn` it was
13set for, or even that it'll be particularly close. A timer event is a
14request to not be woken until after the given time.
16`%eyre` uses `%behn` for timing out sessions, and `%clay` uses `%behn`
17for keeping track of time-specified file requests. `%ames` should
18probably use `%behn` to keep track of things like network timeouts and
19retry timing, but it currently uses its own alarm system.
21This article is a stub. For more information, see either `behn.hoon` or [Lesson 2.6 - Behn](@/docs/tutorials/hoon/behn.md) of the Hoon tutorial.