 (declare build-actor)
 (declare build-disposable)
 
-;; --- Protocols
-
-(definterface IVerticleFactory)
-
 ;; --- Public Api
 
 (s/def :vertx.core$system/threads pos?)

  promise execution chain."
  ([prm] (handle-on-context prm (current-context)))
  ([prm ctx]
   (let [d (p/deferred)]
     (p/finally prm (fn [v e]
                      (.runOnContext

    opts))

(defn- opts->vertx-options
  [{:keys [threads worker-threads on-error]}]
  (let [opts (VertxOptions.)]
    (when threads (.setEventLoopPoolSize opts (int threads)))
    (when worker-threads (.setWorkerPoolSize opts (int worker-threads)))
    (when on-error (.exceptionHandler (vu/fn->handler on-error)))
    opts))

