B2G/gecko/netwerk/test/httpserver/test/test_async_response_sending.js
/**
   * Close the copier's source stream, then asynchronously continue to the next
   * task.
   *
   * @param status : nsresult
   *   the status to provide when closing the copier's source stream
   */
Close the copier's source stream, then asynchronously continue to the next
task.

@param status : nsresult
the status to provide when closing the copier's source stream
Close the copier ' s source stream then asynchronously continue to the next task . @param status : nsresult the status to provide when closing the copier ' s source stream
function closeSource(status)
  {
    var self = this;
    this._addToTasks(function closeSourceTask()
    {
      note("closeSourceTask");
      self._source.closeWithStatus(status);
      self._stageNextTask();
    });
  }
function closeSource ( status ) { var self = this ; this . _addToTasks ( function closeSourceTask ( ) { note ( "closeSourceTask" ) ; self . _source . closeWithStatus ( status ) ; self . _stageNextTask ( ) ; } ) ; }
Close the copier's source stream, then asynchronously continue to the next
 task.
Close the copier ' s source stream then asynchronously continue to the next task .