26template <PrepFuncLike PrepFunc, CQEHandlerLike CQEHandler>
28 return build_op_sender(std::forward<PrepFunc>(func),
29 std::forward<CQEHandler>(cqe_handler));
44template <PrepFuncLike PrepFunc, CQEHandlerLike CQEHandler,
45 typename MultiShotFunc>
47 MultiShotFunc &&multishot_func) {
48 return build_multishot_op_sender(
49 std::forward<PrepFunc>(func), std::forward<CQEHandler>(cqe_handler),
50 std::forward<MultiShotFunc>(multishot_func));
64template <PrepFuncLike PrepFunc, CQEHandlerLike CQEHandler,
typename FreeFunc>
66 FreeFunc &&free_func) {
67 return build_zero_copy_op_sender(std::forward<PrepFunc>(func),
68 std::forward<CQEHandler>(cqe_handler),
69 std::forward<FreeFunc>(free_func));
The main namespace for the Condy library.
auto build_zero_copy_op_awaiter(PrepFunc &&func, CQEHandler &&cqe_handler, FreeFunc &&free_func)
Build a zero-copy operation awaiter with custom CQE handler.
auto build_op_awaiter(PrepFunc &&func, CQEHandler &&cqe_handler)
Build a single-shot operation awaiter with custom CQE handler.
auto build_multishot_op_awaiter(PrepFunc &&func, CQEHandler &&cqe_handler, MultiShotFunc &&multishot_func)
Build a multi-shot operation awaiter with custom CQE handler.
Helper functions for composing asynchronous operations.