Closed FerLuisxd closed 1 year ago
I am not sure what you want to do here. You want to call asynchronously a python function which is also an async function. py.call will run 'ask' on a separate thread, you do not need any async inside python.
Secondly async functions (corutines) in python cannot be called as regular functions, but py.call handles everything as a regular python function. You have to use asyncio.main(ask...) or call 'ask' from another async function and use await/wait_for, etc.
Currently trying to call an async function
Jscode:
Log: