MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / ~Future

Method ~Future

include/PyEventLoop.hh:183–185  ·  view source on GitHub ↗

clear the moved-from object

Source from the content-addressed store, hash-verified

181 Future(const Future &old) = delete; // forbid copy-initialization
182 Future(Future &&old) : _future(std::exchange(old._future, nullptr)) {}; // clear the moved-from object
183 ~Future() {
184 Py_XDECREF(_future);
185 }
186
187 /**
188 * @brief Mark the Future as done and set its result

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected