Branch: Tag:

2017-11-23

2017-11-23 09:19:16 by Stephen R. van den Berg <srb@cuci.nl>

Promise: Rename fold_finish() to apply_fold().

601:    //! The list of all the @expr{futures@} we must accumulate.    //!    //! @seealso -  //! @[Concurrent.fold()], @[fold_finish()] +  //! @[Concurrent.fold()], @[apply_fold()]    void fold(array(Future) futures)    {    if (!astate)
633:    //!    //! @seealso    //! @[Concurrent.fold()], @[fold()] -  void fold_finish(mixed initial, +  void apply_fold(mixed initial,    function(mixed, mixed, mixed ... : mixed) fun,    mixed ... extra)    {
830:   {    Promise p = Promise();    p->fold(futures); -  p->fold_finish(initial, fun, extra); +  p->apply_fold(initial, fun, extra);    return p->future();   }