About 50 results
Open links in new tab
  1. Simplest async/await example possible in Python

    Jun 8, 2018 · Still it uses ensure_future, and for learning purposes about asynchronous programming in Python, I would like to see an even more minimal example, and what are the minimal tools …

  2. How to call a async function from a synchronized code Python

    Aug 9, 2018 · So I'm locked to a python 3.6.2 interpreter that follows my desktop application. What I want is to call an async function from a synchronized method or function. When calling the python …

  3. python - How does asyncio actually work? - Stack Overflow

    Feb 27, 2018 · Python's async and await The explanation has so far explicitly used the yield and yield from vocabulary of generators - the underlying functionality is the same.

  4. How to use await in a python lambda - Stack Overflow

    An " async lambda " would be an anonymous asynchronous function, or in other words an anonymous function evaluating to an awaitable. This is in parallel to how async def defines a named function …

  5. python - How to call an async function from the main thread without ...

    Jan 22, 2023 · I'm trying to call an async function containing an await function from the main thread without halting computation in the main thread. I've looked into similar questions employing a variety …

  6. Asynchronous method call in Python? - Stack Overflow

    Aug 6, 2009 · I was wondering if there's any library for asynchronous method calls in Python. It would be great if you could do something like @async def longComputation(): <code> token = …

  7. Python type hinting for async function as function argument

    Mar 19, 2018 · Python type hinting for async function as function argument Asked 8 years, 1 month ago Modified 1 year, 9 months ago Viewed 80k times

  8. python - How can I periodically execute a function with asyncio ...

    May 29, 2016 · I'm migrating from tornado to asyncio, and I can't find the asyncio equivalent of tornado's PeriodicCallback. (A PeriodicCallback takes two arguments: the function to run and the number of …

  9. python - Test if function or method is normal or asynchronous - Stack ...

    Mar 18, 2016 · Return true if the object is a coroutine function (a function defined with an async def syntax). This function is available since Python 3.5. The module is available for Python 2 with lesser …

  10. How to call async function within non async function in python?

    Sep 26, 2022 · 2 If you can't modify all instances of url_open function to be ansynchronous, then you could use loop s to call some async function (e.g. hello() in code sample below).