Skip to content

Commit 4b9aec3

Browse files
committed
Add a doctring from take!
1 parent e0d360f commit 4b9aec3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/clojure_game_geek/db.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
(ns clojure-game-geek.db
22
(:require
3-
[clojure.java.io :as io]
43
[com.stuartsierra.component :as component]
54
[postgres.async :refer [open-db query! close-db!]]
65
[clojure.core.async :refer [<!!]]))
@@ -27,6 +26,8 @@
2726
{:db (map->ClojureGameGeekDb {})})
2827

2928
(defn ^:private take!
29+
"Takes a value from a channel and rethrows an exception if that is the
30+
conveyed value."
3031
[ch]
3132
(let [v (<!! ch)]
3233
(if (instance? Throwable v)

0 commit comments

Comments
 (0)