corotypes.hpp 306 B

1234567891011
  1. #ifndef __COROTYPES_HPP__
  2. #define __COROTYPES_HPP__
  3. #include <functional>
  4. #include <boost/coroutine2/coroutine.hpp>
  5. using coro_t = boost::coroutines2::coroutine<void>::pull_type;
  6. using yield_t = boost::coroutines2::coroutine<void>::push_type;
  7. using coro_lambda_t = std::function<void(yield_t&)>;
  8. #endif