Branch: Tag:

2017-06-08

2017-06-08 16:18:11 by Martin Nilsson <nilsson@fastmail.com>

Added _sprintf

387:    call_out(p->try_failure, seconds, ({ "Timeout.\n", backtrace() }));    return p->future();    } +  +  protected string _sprintf(int t) +  { +  return t=='O' && sprintf("%O(%s,%O)", this_program, +  ([ STATE_PENDING : "pending", +  STATE_REJECTED : "rejected", +  STATE_FULFILLED : "fulfilled" ])[state], +  result);    } -  + }      //! Promise to provide a @[Future] value.   //!