Skip to content

Commit

Permalink
Add docstring for closing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcompton committed Jul 1, 2015
1 parent e89b72d commit dabbbb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rethinkdb/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
(send-int out n 4)
(send-str out auth-key)))

(defn close [conn]
(defn close
"Closes RethinkDB database connection, stops all running queries
and waits for response before returning"
[conn]
(let [{:keys [socket out in waiting]} @conn]
(doseq [token waiting]
(send-stop-query conn token))
Expand Down

0 comments on commit dabbbb3

Please sign in to comment.