Closed
Description
I create a fifo buffer and start an async task to write to it every 1 second forever.
Then i try to read while !eof()
, but eof()
returns true after the first read (and i have not called close()
).
julia> using HTTP
julia> io = HTTP.FIFOBuffers.FIFOBuffer()
HTTP.FIFOBuffers.FIFOBuffer(0, 4611686014132420609, 0, 1, 1, -1, 0, UInt8[], Condition(Any[]), Task (runnable) @0x00000001178c1450, false)
julia> @async while true
println(io, now())
sleep(1)
end
Task (runnable) @0x00000001178c3850
julia> while !eof(io)
println(String(readavailable(io)))
@show eof(io)
end
2017-08-22T21:53:39.083
2017-08-22T21:53:40.249
2017-08-22T21:53:41.256
2017-08-22T21:53:42.262
eof(io) = true
Metadata
Metadata
Assignees
Labels
No labels