diff options
| author | Jake Zerrer <him@jakezerrer.com> | 2025-11-05 16:45:22 -0500 |
|---|---|---|
| committer | Jake Zerrer <him@jakezerrer.com> | 2025-11-06 11:08:24 -0500 |
| commit | 2d956a3a779672ab3acfc1bc542ebba855522d06 (patch) | |
| tree | 37c5f1eb7e549e2662bfb6abbe932136aa53cdf0 /src/unheard/clock.clj | |
| parent | bee77914483da25831093e0475e4a71f1383253b (diff) | |
Organize namespaces
Diffstat (limited to 'src/unheard/clock.clj')
| -rw-r--r-- | src/unheard/clock.clj | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/unheard/clock.clj b/src/unheard/clock.clj new file mode 100644 index 0000000..4011919 --- /dev/null +++ b/src/unheard/clock.clj @@ -0,0 +1,11 @@ +(ns unheard.clock + (:require [missionary.core :as m])) + +(defn clock + "Returns a tuple of [`>clock` `clock`]. + `clock` is an atom representing the current time. + `>clock` is a signal representing the current time." + [] + (let [clock (atom 0) + >clock (m/signal (m/watch clock))] + [>clock clock])) |
