 # ```
 module.exports =
 class Task
-  Emitter.includeInto(this)
-
   # Public: A helper method to easily launch and run a task once.
   #
   # * `taskPath` The {String} path to the CoffeeScript/JavaScript file which

_ = require 'underscore-plus'
ChildProcess = require 'child_process'
{Emitter} = require 'emissary'
Grim = require 'grim'

# Extended: Run a node script in a separate process.

  # * `callback` The {Function} to call when the event is emitted.
  #
  # Returns a {Disposable} that can be used to stop listening for the event.
  on: (eventName, callback) -> @emitter.on eventName, (args) -> callback(args...)

  once: (eventName, callback) ->
    disposable = @on eventName, (args...) ->
      disposable.dispose()
      callback(args...)

  # Public: Forcefully stop the running task.
  #
