Searched refs:SupportsAsync (Results 1 – 2 of 2) sorted by relevance
16 struct SupportsAsync {}; in TEST_SUBMODULE() struct17 py::class_<SupportsAsync>(m, "SupportsAsync") in TEST_SUBMODULE()19 .def("__await__", [](const SupportsAsync& self) -> py::object { in TEST_SUBMODULE()
20 assert 5 == event_loop.run_until_complete(get_await_result(m.SupportsAsync()))