pike.git / lib / modules / Concurrent.pmod

version» Context lines:

pike.git/lib/modules/Concurrent.pmod:1136:    //! @[depend()], @[max_failures()]    this_program any_results()    {    return max_failures(-1);    }       protected void destroy()    {    // NB: Don't complain about dropping STATE_NO_FUTURE on the floor.    if (state == STATE_PENDING) -  try_failure(({ "Promise broken.\n", backtrace() })); +  try_failure(({ sprintf("%O: Promise broken.\n", this), backtrace() }));    if ((state == STATE_REJECTED) && global_on_failure)    call_callback(global_on_failure, result);    result = UNDEFINED;    }   }      //! @returns   //! A @[Future] that represents the first   //! of the @expr{futures@} that completes.   //!