 # TODO: should we keep it?
 $promisify = (fn) ->
   (args...) ->
-    deferred = Q.defer()
+    deferred = $Q.defer()
 
     $fiber(=>
       try


module.exports = {
  $fiberize
  $sleep
  $synchronize
  $waitEvent


# Async code is easier with fibers (light threads)!
$fiber = require 'fibers'

$Q = require 'q'

#=====================================================================

