clear the moved-from object
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected