Skip to content

Commit 19d1a60

Browse files
authored
Update finally docstring as per #101
Adds documentation on the return value of `finally` as described in #101
1 parent 41fdee1 commit 19d1a60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/manifold/deferred.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,9 @@
10191019

10201020
(defn finally
10211021
"An equivalent of the finally clause, which takes a no-arg side-effecting function that executes
1022-
no matter what the result."
1022+
no matter what the result.
1023+
1024+
Returns x unless a Throwable is thrown in f, in which case it returns an error-deferred."
10231025
[x f]
10241026
(if-let [d (->deferred x nil)]
10251027
(finally' d f)

0 commit comments

Comments
 (0)