julia icon indicating copy to clipboard operation
julia copied to clipboard

don't throw EOFError from sleep

Open lgeissbauer-btig opened this issue 1 year ago • 2 comments

We will no longer throw a error if the timer fires after we first checked set.

But still keeps this case functional:

julia> t = Timer(1000000000);

julia> close(t)

julia> t.set
false

julia> wait(t)
ERROR: EOFError: read end of file
Stacktrace:
 [1] wait(t::Timer)
   @ Base .\asyncevent.jl:159
 [2] top-level scope
   @ REPL[16]:1

lgeissbauer-btig avatar Jun 27 '24 12:06 lgeissbauer-btig

instead of https://github.com/JuliaLang/julia/pull/54801 See the discourse discussion.

lgeissbauer-btig avatar Jun 27 '24 12:06 lgeissbauer-btig

instead of ...

Did you mean #54801

vchuravy avatar Jun 27 '24 19:06 vchuravy