   waiting = []
   allRegistered = {}
 
+
+
+  beginResolving = (name) ->
+    resolver = allRegistered[name]?.resolveMe
+    if resolver
+      allRegistered[name].resolveMe = null
+      resolver()
+
+
+
   loadModules = (modules, callback) ->
     missing = {}
     resolved = {}

        resolved[m] = diModules[m].value
      else
        missing[m] = true

    if Object.keys(missing).length == 0
      setImm -> callback(resolved)

        modules: resolved
        callback: callback
      })



  onRegister = (id, value) ->
