Pyscript - FIRST ASYNC WITH NON-BLOCKING AWAIT AT ONE LEVEL LOWER THAN LOOP Pyscript writing to console.log: import js import asyncio async def asyncCall1(): await asyncio.sleep(2) for i in range(3): js.console.log('A', i) asyncCall1()
Pyscript - SECOND ASYNC WITH NON-BLOCKING AWAIT AT ONE LEVEL LOWER THAN LOOP Pyscript writing to console.log: import js import asyncio async def asyncCall2(): await asyncio.sleep(2) for i in range(3): js.console.log('B', i) asyncCall2()