MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / set_cancellation_token

Method set_cancellation_token

src/server/server.cpp:352–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352void HttpSession::set_cancellation_token(std::shared_ptr<CancellationToken> token) {
353 cancellation_token_ = token;
354 start_client_disconnect_monitor(token);
355}
356
357void HttpSession::start_client_disconnect_monitor(std::shared_ptr<CancellationToken> token) {
358 if (!token || token->cancelled() || !socket_.is_open()) {

Callers 1

handle_requestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected