aricpp icon indicating copy to clipboard operation
aricpp copied to clipboard

High level interface with (custom) futures

Open daniele77 opened this issue 8 years ago • 0 comments

I'd like to write a sequence of aricpp operation in this way:

ch1->Hangup()
.Then([=](){ return bridge->Destroy(); })
.Then([=](){ return ch2->Hold(); })
.Then([=](){ cout << "ch2 in hold\n"; })
.OnError([](exception const& e) {cerr << e.what() << endl; });

daniele77 avatar Oct 17 '17 08:10 daniele77