mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 21:07:26 +02:00
Add basic_stream::rebind_executor
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
Version 275:
|
Version 275:
|
||||||
|
|
||||||
* Async init-fns use the executor's default token
|
* Async init-fns use the executor's default token
|
||||||
|
* Add basic_stream::rebind_executor
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -217,6 +217,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
using executor_type = beast::executor_type<socket_type>;
|
using executor_type = beast::executor_type<socket_type>;
|
||||||
|
|
||||||
|
/// Rebinds the stream type to another executor.
|
||||||
|
template<class Executor1>
|
||||||
|
struct rebind_executor
|
||||||
|
{
|
||||||
|
/// The stream type when rebound to the specified executor.
|
||||||
|
using other = basic_stream<
|
||||||
|
Protocol, Executor1, RatePolicy>;
|
||||||
|
};
|
||||||
|
|
||||||
/// The protocol type.
|
/// The protocol type.
|
||||||
using protocol_type = Protocol;
|
using protocol_type = Protocol;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user