B2G/gecko/netwerk/test/httpserver/test/test_async_response_sending.js
/**
       * Dispatches an event to call a previously-registered stream-ready
       * callback.
       */
Dispatches an event to call a previously-registered stream-ready
callback.
Dispatches an event to call a previously - registered stream - ready callback .
function _notify()
      {
        dumpn("*** [" + this.name + "]._notify()");
        var waiter = this._waiter;
        do_check_true(waiter !== null, "no waiter?");
        if (this._event === null)
        {
          var event = this._event =
            {
              run: function run()
              {
                output._waiter = null;
                output._event = null;
                try
                {
                  waiter.callback.onOutputStreamReady(output);
                }
                catch (e)
                {
                  do_throw("error calling onOutputStreamReady: " + e);
                }
              }
            };
          waiter.eventTarget.dispatch(event, Ci.nsIThread.DISPATCH_NORMAL);
        }
      }
function _notify ( ) { dumpn ( "*** [" + this . name + "]._notify()" ) ; var waiter = this . _waiter ; do_check_true ( waiter !== null , "no waiter?" ) ; if ( this . _event === null ) { var event = this . _event = { run : function run ( ) { output . _waiter = null ; output . _event = null ; try { waiter . callback . onOutputStreamReady ( output ) ; } catch ( e ) { do_throw ( "error calling onOutputStreamReady: " + e ) ; } } } ; waiter . eventTarget . dispatch ( event , Ci . nsIThread . DISPATCH_NORMAL ) ; } }
Dispatches an event to call a previously-registered stream-ready
 callback.
Dispatches an event to call a previously - registered stream - ready callback .