Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

AFAIU await can only be used with async functions:

  async def http_request(url):
    # ...

  await http_request(u)
If the method I want to use is not an async one, is it possible to dynamically define a lambda ?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: