   Instead, the interceptor created by this function is a way to 'inject'
   'necessary resources' into the `:coeffects` (map) subsequently given
   to the event handler at call time.
-          
+
   See also `reg-cofx`
   "
   {:api-docs/heading "Coeffects"}

   (cofx/inject-cofx id value)))

(defn clear-cofx ;; think unreg-cofx
  "Unregisters coeffect handlers (presumably registered previously via the use of `reg-cofx`). 
   
  When called with no args, it will unregister all currently registered coeffect handlers. 
   
  When given one arg, assumed to be the `id` of a previously registered 
  coeffect handler, it will unregister the associated handler. Will produce a warning to 
  console if it finds no matching registration."
  {:api-docs/heading "Coeffects"}
  ([]


  Example Usage:

      (reg-event-fx
        :event-id
        (fn [cofx event]
          {:db (assoc (:db cofx) :some-key (get event 2))}))   ;; return a map of effects

