Skip to content

Commit

Permalink
Fix failing persistent task example in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Apr 7, 2024
1 parent ee2d9a8 commit 96238a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Changelog = "5217a498-cd5d-4ec6-b8c2-9b85a09b6e3e"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

Expand Down
5 changes: 3 additions & 2 deletions docs/src/persistent_tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
import Aqua
Aqua.test_persistent_tasks(Aqua, expr = quote
Threads.@spawn while true sleep(0.5) end
end
end)
```

## How the test works
Expand Down

0 comments on commit 96238a5

Please sign in to comment.