     setTimeout finish, 500
 
   # Provide a callback to be called when the dispatcher detects the process is stuck
-  on_stuck: (callback) ->
-    @_stuck_callback = callback
-    this
+  on_stuck: (@_stuck_callback) -> this
 
   # Set the idle handler
   on_idle: (@_idle_handler) -> this


  # Subscribe to the `requests` and `responses` channels.
  listen: ->
    @_requests_channel.listen (source, keys) =>
      @_requested source, keys
    @_responses_channel.listen (ch, str) => @_responded str

  # Send quit signals to the work queues.

      @_recover()
    else
      console.log "Hmm, the doctor couldn't find anything amiss..." if @_verbose

  # Recover from a stuck process.
  _recover: ->
    if @doc.recoverable()
