MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / setAsyncCallback

Method setAsyncCallback

src/IO/WriteBufferFromPocoSocket.cpp:205–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void 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}

Callers

nothing calls this directly

Calls 3

ExceptionClass · 0.70
implMethod · 0.45

Tested by

no test coverage detected