Permalink
Browse files

Ensure post and post-delayed are macros

  • Loading branch information...
1 parent 90a236c commit 30bf682bc138c5a8400d7a7557c45c822f4fb72d @sattvik committed Mar 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/clojure/neko/threading.clj
@@ -37,7 +37,7 @@
[^View view ^IFn f]
(.post view (reify Runnable (run [this] (f)))))
-(defn post
+(defmacro post
"Causes the macro body to be added to the message queue. It will execute on
the UI thread. Returns true if successfully placed in the message queue."
[^View view & body]
@@ -51,7 +51,7 @@
[^View view ^long millis ^IFn f]
(.postDelayed view (reify Runnable (run [this] (f))) millis ))
-(defn post-delayed
+(defmacro post-delayed
"Causes the macro body to be added to the message queue. It will execute on
the UI thread. Returns true if successfully placed in the message queue."
[view millis & body]

0 comments on commit 30bf682

Please sign in to comment.