Closed RonaldinhoL closed 3 years ago
my code like:
def pyfunc(): ~~~i want here call another_async_func ~~~ async def another_async_func(): pass async def main(): ctx = js2py.EvalJS() ctx.pyfunc = pyfunc ctx.eval("""pyfunc()""") asyncio.run(main())
i found pyfunc set to ctx can not be a coroutines , than i try get_event_loop in pyfunc(), it can not work either.
solved.
Share solution?
my code like: