MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / Task

Method Task

tests/integrationtests/DBusAwaitableMethodsTests.cpp:90–90  ·  view source on GitHub ↗

Ctor and rule of 5 for proper handle management

Source from the content-addressed store, hash-verified

88
89 // Ctor and rule of 5 for proper handle management
90 explicit Task(std::coroutine_handle<promise_type> hnd) : handle(hnd) {}
91 Task(Task&& other) noexcept : handle(std::exchange(other.handle, {})) {}
92 Task& operator=(Task&& other) noexcept {
93 if (this != &other) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected