pike.git / lib / modules / Concurrent.pmod

version» Context lines:

pike.git/lib/modules/Concurrent.pmod:10:    STATE_FULFILLED,    STATE_REJECTED,   };      protected Thread.Mutex mux = Thread.Mutex();   protected Thread.Condition cond = Thread.Condition();      //! Global failure callback, called when a promise without failure   //! callback fails. This is useful to log exceptions, so they are not   //! just silently caught and ignored. - void on_failure(function(mixed, mixed ... : void) f) + void on_failure(function(mixed : void) f)   {    global_on_failure = f;   } - protected function(mixed, mixed ... : void) global_on_failure; + protected function(mixed : void) global_on_failure;      //! Value that will be provided asynchronously   //! sometime in the future.   //!   //! @seealso   //! @[Promise]   class Future   {    mixed result = UNDEFINED;    State state;