Commit df3f8be3 authored by Dominik Charousset's avatar Dominik Charousset

Add convenience type alias

parent b17b575e
...@@ -36,6 +36,10 @@ using accept_event_t ...@@ -36,6 +36,10 @@ using accept_event_t
template <class... Ts> template <class... Ts>
using acceptor_resource_t = async::producer_resource<accept_event_t<Ts...>>; using acceptor_resource_t = async::producer_resource<accept_event_t<Ts...>>;
/// A consumer resource for processing accepted connections.
template <class... Ts>
using listener_resource_t = async::consumer_resource<accept_event_t<Ts...>>;
/// Convenience function for creating an event listener resource and an /// Convenience function for creating an event listener resource and an
/// @ref acceptor_resource_t via @ref async::make_spsc_buffer_resource. /// @ref acceptor_resource_t via @ref async::make_spsc_buffer_resource.
template <class... Ts> template <class... Ts>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment