Stephen R. van den Berg wrote:
Stephen R. van den Berg wrote:
Just checked into Pike 8.1: depend(), fold() and fold_finish().
The last two have been done with testing yet.
I tested depend(). Still todo: test fold(), fold_finish() and add documentation.
On second thought, the better interface probably would be:
Concurrent.Promise p = Concurrent.Promise(); Concurrent.Future f;
f = p->depend( future1 ); f = f->depend( future2 ); f->on_success(...);
Wouldn't it?