My code is structured like the below.
How could i use pyinotify in main, ie from within the run function ?
if name == "main":
asyncio.run(main())
async def main()
asyncio.gather(a,enter_this_whenever_a_file_is_modified)
async def a():
while True:
do_a()
async def enter_this_whenever_a_file_is_modified():
how should i write this coroutine ?
Hi,
My code is structured like the below. How could i use pyinotify in main, ie from within the run function ?
if name == "main": asyncio.run(main()) async def main() asyncio.gather(a,enter_this_whenever_a_file_is_modified) async def a(): while True: do_a() async def enter_this_whenever_a_file_is_modified(): how should i write this coroutine ?