MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / Connection

Method Connection

src/connection.cxx:30–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28{
29
30Connection::Connection(int num_io_threads)
31 : io_()
32 , cluster_(io_)
33 , io_threads_()
34 , connected_(false)
35{
36 for (int i = 0; i < num_io_threads; ++i) {
37 io_threads_.emplace_back([this]() {
38 try {
39 io_.run();
40 } catch (const std::exception& e) {
41 CB_LOG_ERROR(e.what());
42 throw;
43 } catch (...) {
44 CB_LOG_ERROR("Unknown exception");
45 throw;
46 }
47 });
48 }
49}
50
51Connection::~Connection()
52{

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected