Navigation Menu

Skip to content

Commit

Permalink
Clean up wording a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias committed Jul 9, 2014
1 parent 0d2c4a9 commit 714b2ba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions api/src/main/clojure/vertx/core.clj
Expand Up @@ -58,16 +58,17 @@

(defn ^Container get-container
"Returns the currently active vertx container instance (*container*).
If throw? is truthy, throws when the container isn't available.
If using container in embed mode, please create a platform firstly,
then deploy with it."
If using Vert.x embedded, the container won't be available. Use the
functions in vertx.platform for deploying when embedded."
([]
(get-container true))
([throw?]
(or *container*
(and throw?
(throw (VertxException. "No container instance available.
please create a platform and deploy with it."))))))
(throw (VertxException. "No container instance available. If embedded, see vertx.platform."))))))

(defn event-loop?
"Is the current thread an event loop thread?"
Expand Down

0 comments on commit 714b2ba

Please sign in to comment.