MCPcopy Create free account
hub / github.com/boostorg/cobalt / await_resume

Method await_resume

example/python.cpp:272–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 }
271
272 py::object await_resume()
273 {
274 if (!exception.is_none())
275 {
276 py::object locals = py::dict();
277 PyRun_String(
278 R"(def __rethrow__(ex):
279 raise ex;
280)",
281 Py_single_input, PyEval_GetGlobals(), locals.ptr());
282 locals["__rethrow__"](exception);
283 }
284 return std::move(result);
285 }
286};
287
288cobalt::generator<int> test_generator()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected