<p dir="auto">The help gives no info about the fact that a function is deprecated.<br>
EDIT: Unless you notice that it is defined in <code class="notranslate">deprecated.jl</code>.</p>
<p dir="auto">Example:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="help?&gt; fft
search: fft fft! FFTW fftshift rfft ifft bfft ifft! bfft! ifftshift irfft brfft

  No documentation found.

  Base.DFT.fft is a Function.

  # 1 method for generic function &quot;fft&quot;:
  [1] fft(args...; kwargs...) in Base.DFT at deprecated.jl:133

julia&gt; fft()
ERROR: Base.DFT.fft has been moved to the package FFTW.jl.
Run `Pkg.add(&quot;FFTW&quot;)` to install it, restart Julia,
and then run `using FFTW` to load it.
Stacktrace:
 [1] error(::Function, ::String, ::String, ::String, ::String, ::String, ::String, ::String, ::String, ::String) at ./error.jl:44
 [2] fft() at ./deprecated.jl:133
 [3] top-level scope"><pre class="notranslate">help?<span class="pl-k">&gt;</span> fft
search<span class="pl-k">:</span> fft fft! FFTW fftshift rfft ifft bfft ifft! bfft! ifftshift irfft brfft

  No documentation found.

  Base<span class="pl-k">.</span>DFT<span class="pl-k">.</span>fft is a Function.

  <span class="pl-c"><span class="pl-c">#</span> 1 method for generic function "fft":</span>
  [<span class="pl-c1">1</span>] <span class="pl-c1">fft</span>(args<span class="pl-k">...</span>; kwargs<span class="pl-k">...</span>) <span class="pl-k">in</span> Base<span class="pl-k">.</span>DFT at deprecated<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">133</span>

julia<span class="pl-k">&gt;</span> <span class="pl-c1">fft</span>()
ERROR<span class="pl-k">:</span> Base<span class="pl-k">.</span>DFT<span class="pl-k">.</span>fft has been moved to the package FFTW<span class="pl-k">.</span>jl.
Run <span class="pl-s"><span class="pl-pds">`</span>Pkg.add("FFTW")<span class="pl-pds">`</span></span> to install it, restart Julia,
and then run <span class="pl-s"><span class="pl-pds">`</span>using FFTW<span class="pl-pds">`</span></span> to load it.
Stacktrace<span class="pl-k">:</span>
 [<span class="pl-c1">1</span>] <span class="pl-c1">error</span>(<span class="pl-k">::</span><span class="pl-c1">Function</span>, <span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">String</span>) at <span class="pl-k">./</span>error<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">44</span>
 [<span class="pl-c1">2</span>] <span class="pl-c1">fft</span>() at <span class="pl-k">./</span>deprecated<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">133</span>
 [<span class="pl-c1">3</span>] top<span class="pl-k">-</span>level scope</pre></div>
<p dir="auto">Unlike other iterable types, <code class="notranslate">Task</code> seem to advance on <code class="notranslate">done</code> instead of <code class="notranslate">next</code>. Is there a reason for this - it seems to break the iteration contract. eg.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function p()
    produce(&quot;A&quot;)
    produce(&quot;B&quot;)
    produce(&quot;C&quot;)
end

t = Task(p)

println(&quot;1&quot;)
s = start(t)
println(&quot;2&quot;)
done(t, s)
println(&quot;3&quot;)
(v, s) = next(t, s)
println(&quot;4 $v&quot;)
done(t, s)
println(&quot;5&quot;)
(v, s) = next(t, s)
println(&quot;6 $v&quot;)
(v, s) = next(t, s)
println(&quot;7 $v&quot;)
done(t, s)
println(&quot;8&quot;)"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">p</span>()
    <span class="pl-c1">produce</span>(<span class="pl-s"><span class="pl-pds">"</span>A<span class="pl-pds">"</span></span>)
    <span class="pl-c1">produce</span>(<span class="pl-s"><span class="pl-pds">"</span>B<span class="pl-pds">"</span></span>)
    <span class="pl-c1">produce</span>(<span class="pl-s"><span class="pl-pds">"</span>C<span class="pl-pds">"</span></span>)
<span class="pl-k">end</span>

t <span class="pl-k">=</span> <span class="pl-c1">Task</span>(p)

<span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>1<span class="pl-pds">"</span></span>)
s <span class="pl-k">=</span> <span class="pl-c1">start</span>(t)
<span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>2<span class="pl-pds">"</span></span>)
<span class="pl-c1">done</span>(t, s)
<span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>3<span class="pl-pds">"</span></span>)
(v, s) <span class="pl-k">=</span> <span class="pl-c1">next</span>(t, s)
<span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>4 <span class="pl-v">$v</span><span class="pl-pds">"</span></span>)
<span class="pl-c1">done</span>(t, s)
<span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>5<span class="pl-pds">"</span></span>)
(v, s) <span class="pl-k">=</span> <span class="pl-c1">next</span>(t, s)
<span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>6 <span class="pl-v">$v</span><span class="pl-pds">"</span></span>)
(v, s) <span class="pl-k">=</span> <span class="pl-c1">next</span>(t, s)
<span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>7 <span class="pl-v">$v</span><span class="pl-pds">"</span></span>)
<span class="pl-c1">done</span>(t, s)
<span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span>8<span class="pl-pds">"</span></span>)</pre></div>
<p dir="auto">Produces:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1
2
3
4 A
5
6 B
7 B
8"><pre class="notranslate"><code class="notranslate">1
2
3
4 A
5
6 B
7 B
8
</code></pre></div>