mirror of
https://github.com/boostorg/coroutine2.git
synced 2026-02-03 09:02:15 +00:00
adapt new execution_context API
This commit is contained in:
@@ -9,15 +9,12 @@
|
||||
|
||||
#include <boost/coroutine2/all.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
int main() {
|
||||
boost::coroutines2::coroutine< void >::push_type sink(
|
||||
[&]( boost::coroutines2::coroutine< void >::pull_type & source) {
|
||||
[]( boost::coroutines2::coroutine< void >::pull_type & source) {
|
||||
std::cout << "inside coroutine-fn" << std::endl;
|
||||
});
|
||||
sink();
|
||||
|
||||
std::cout << "Done" << std::endl;
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user