diff --git a/docs/src/persistent_tasks.md b/docs/src/persistent_tasks.md index 49371c19..cd3e6f85 100644 --- a/docs/src/persistent_tasks.md +++ b/docs/src/persistent_tasks.md @@ -48,9 +48,10 @@ end) Here is an example test with a dummy expr which will obviously fail, because it's explicitly spawning a Task that never dies. ```@repl -Aqua.test_persistent_tasks(Aqua, quote +using Aqua +Aqua.test_persistent_tasks(Aqua, expr = quote Threads.@spawn while true sleep(0.5) end -end +end) ``` ## How the test works