@ -8,6 +8,7 @@ Construct a tee stream by wrapping multiple writable IO objects:
@@ -8,6 +8,7 @@ Construct a tee stream by wrapping multiple writable IO objects:
```julia
tee = TeeStream(io::IO...)
write(tee, ....)
flush(tee) # calls flush on all wrapped io
close(tee) # calls close on all wrapped io
```
@ -20,12 +21,6 @@ TeeStream(f::Function, io::IO...) do tee
@@ -20,12 +21,6 @@ TeeStream(f::Function, io::IO...) do tee
end
```
Construct a tee stream by wrapping multiple writable IO objects and
call function `f` on the tee. Automatically calls `close` on the tee
before returning.
`close` and `flush` on a tee stream closes/flushes all the wrapped streams.