MCPcopy Create free account
hub / github.com/ashvardanian/less_slow.cpp / close

Method close

less_slow.cpp:7692–7696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7690
7691 void stop() { should_stop_.store(true, std::memory_order_seq_cst); }
7692 void close() {
7693 socket_.cancel();
7694 context_.stop();
7695 if (context_thread_.joinable()) context_thread_.join();
7696 }
7697
7698 void operator()() {
7699 // For per-operation cancellations we could use the `asio::cancellation_signal`.

Callers

nothing calls this directly

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected