| 203 | } |
| 204 | |
| 205 | void WriteBufferFromPocoSocket::setAsyncCallback(AsyncCallback async_callback_) |
| 206 | { |
| 207 | if (async_callback_ && !socket.impl()->supportsExternalPolling()) |
| 208 | throw Exception(ErrorCodes::LOGICAL_ERROR, |
| 209 | "Cannot set an async callback on a socket that does not support external polling"); |
| 210 | async_callback = std::move(async_callback_); |
| 211 | } |
| 212 | |
| 213 | } |
nothing calls this directly
no test coverage detected