 (defn reg-sub-raw
   "This is a low level, advanced function.  You should probably be
   using `reg-sub` instead.
-   
+
   Some docs are available in
   <a href=\"http://day8.github.io/re-frame/flow-mechanics/\" target=\"_blank\">http://day8.github.io/re-frame/flow-mechanics/</a>"
   [query-id handler-fn]

   one arg, assumed to be a `query-id` of a registered subscription handler,
   unregisters the associated handler.

   NOTE: Depending on the usecase it may also be necessary to call 
         `clear-subscription-cache!`."
  ([]
   (registrar/clear-handlers subs/kind))

(defn add-post-event-callback
  "Registers a function `f` to be called after each event is processed
   `f` will be called with two arguments:

    - `event`: a vector. The event just processed.
    - `queue`: a PersistentQueue, possibly empty, of events yet to be processed.

   This is useful in advanced cases like:

     - you are implementing a complex bootstrap pipeline
     - you want to create your own handling infrastructure, with perhaps multiple
       handlers for the one event, etc.  Hook in here.
