function OA_onRelease(aRequest) {
    if (this.threadActor.state !== "paused") {
      return this.WRONG_STATE_RESPONSE;
    }
    if (this.registeredPool !== this.threadActor.threadLifetimePool) {
      return { error: "notReleasable",
               message: "only thread-lifetime actors can be released." };
    }

    this.release();
    return {};
  }
/**
   * Handle a protocol request to release a thread-lifetime grip.
   *
   * @param aRequest object
   *        The protocol request object.
   */
Handle a protocol request to release a thread-lifetime grip.
@param aRequest object
The protocol request object.
Handle a protocol request to release a thread - lifetime grip . @param aRequest object The protocol request object .
function OA_onRelease(aRequest) {
    if (this.threadActor.state !== "paused") {
      return this.WRONG_STATE_RESPONSE;
    }
    if (this.registeredPool !== this.threadActor.threadLifetimePool) {
      return { error: "notReleasable",
               message: "only thread-lifetime actors can be released." };
    }
    this.release();
    return {};
  }
function OA_onRelease ( aRequest ) { if ( this . threadActor . state !== "paused" ) { return this . WRONG_STATE_RESPONSE ; } if ( this . registeredPool !== this . threadActor . threadLifetimePool ) { return { error : "notReleasable" , message : "only thread-lifetime actors can be released." } ; } this . release ( ) ; return { } ; }
Handle a protocol request to release a thread-lifetime grip.
Handle a protocol request to release a thread - lifetime grip .