Skip to content

Commit f46a80d

Browse files
committed
add a note on TOKEN_END
1 parent 54452b4 commit f46a80d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/stream.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ A special token indicating the end of data.
252252
253253
`TOKEN_END` may be written to a transcoding stream like `write(stream,
254254
TOKEN_END)`, which will terminate the current transcoding block.
255+
256+
!!! note
257+
258+
Call `flush(stream)` after `write(stream, TOKEN_END)` to make sure that all
259+
data are written to the underlying stream.
255260
"""
256261
const TOKEN_END = EndToken()
257262

0 commit comments

Comments
 (0)