-
Notifications
You must be signed in to change notification settings - Fork 1
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
Old @use_async
still running
#10
Comments
The infinite loop is caused by a second cell that does something like: let
dir_changed_time
write(joinpath(dir, "_cache", "hello.txt"), "world")
end Which I was trying to avoid by filtering inside my filewatching callback |
Maybe the |
That's a great idea! if it throws an error after invalidation that's another way to kill the task. |
Something like this also does not work: @use_task([output_dir]) do
run(`$(Deno_jll.deno()) run --allow-read --allow-net https://deno.land/[email protected]/http/file_server.ts`)
end When you re-run the cell, the old server is still running while the new one is starting up, which gives I think we should await shutting down the last task before starting the next one? |
I had a weird time debugging something today, until I found out that an old
@use_async
was still running. In this case I just commented out the entire callback, but the old callback was still running async.Schermopname.2022-03-14.om.15.11.54.mov
The text was updated successfully, but these errors were encountered: