Get the executor associated with the object. This function may be used to obtain the executor object that the stream uses to dispatch completion handlers without an assocaited executor. @return A copy of the executor that stream will use to dispatch handlers. */
| 531 | @return A copy of the executor that stream will use to dispatch handlers. |
| 532 | */ |
| 533 | executor_type |
| 534 | get_executor() noexcept |
| 535 | { |
| 536 | return impl_->ex(); |
| 537 | } |
| 538 | |
| 539 | /** Connect the stream to the specified endpoint. |
| 540 |