Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question on how to use without chaging code too much #200

Open
daviidarr opened this issue Jul 17, 2022 · 0 comments
Open

question on how to use without chaging code too much #200

daviidarr opened this issue Jul 17, 2022 · 0 comments

Comments

@daviidarr
Copy link

daviidarr commented Jul 17, 2022

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant