Skip to content

Commit

Permalink
Use the public wait() in the errormonitor() docstring (#54650)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley authored Jun 5, 2024
1 parent c8ae7a0 commit 1de7623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/task.jl
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ Print an error log to `stderr` if task `t` fails.
# Examples
```julia-repl
julia> Base._wait(errormonitor(Threads.@spawn error("task failed")))
julia> wait(errormonitor(Threads.@spawn error("task failed")); throw = false)
Unhandled Task ERROR: task failed
Stacktrace:
[...]
Expand Down

0 comments on commit 1de7623

Please sign in to comment.