title: Is there a way to call an `async` python method from C++?
body: <p>We have a codebase in python which uses asyncio, and co-routines (<code>async</code> methods and <code>await</code>s), what I'd like to do is to call one of these method from a C++ class which has been pulled into python (using pybind11)</p>
  
  <p>Let's say there is this code:</p>
  
  <pre><code>class Foo:
    async def bar(a, b, c):
      # some stuff
      return c * a
  </code></pre>
  
  <p>Assuming that the code is being invoked from python and there is an io loop handling this, at some point, the code drops into C++ land where this <code>bar</code> method needs to be invoked - how does one <code>await</code> the result of this in C++?</p>