Skip to content

Commit

Permalink
on-realized now returns the deferred rather than whatever .onRealized…
Browse files Browse the repository at this point in the history
… returns as this is a bit arbitrary
  • Loading branch information
David Smith committed Apr 8, 2015
1 parent 2b72c80 commit 59726a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/manifold/deferred.clj
Expand Up @@ -80,7 +80,8 @@
"Registers callbacks with the manifold deferred for both success and error outcomes."
[x on-success on-error]
`(let [^manifold.deferred.IDeferred x# ~x]
(.onRealized x# ~on-success ~on-error)))
(.onRealized x# ~on-success ~on-error)
~x))

(definline deferred?
"Returns true if the object is an instance of a Manifold deferred."
Expand Down

0 comments on commit 59726a4

Please sign in to comment.