Skip to content

Commit e0d8ba7

Browse files
authored
Add docstring for fallback fetch(::Any) method (JuliaLang#45008)
We cannot just include `Base.fetch` in the `@docs` block as some methods should keep being documented in the Distributed stdlib rather than in Base.
1 parent 5e1c5cf commit e0d8ba7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

base/task.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,11 @@ function wait(t::Task)
351351
nothing
352352
end
353353

354+
"""
355+
fetch(x::Any)
356+
357+
Return `x`.
358+
"""
354359
fetch(@nospecialize x) = x
355360

356361
"""

doc/src/base/parallel.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Base.errormonitor
3333
Base.@sync
3434
Base.wait
3535
Base.fetch(t::Task)
36+
Base.fetch(x::Any)
3637
Base.timedwait
3738
3839
Base.Condition

0 commit comments

Comments
 (0)