Browse Source

Update README.md

pull/1/head
Fredrik Ekre 5 years ago committed by GitHub
parent
commit
96946e63ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      README.md

7
README.md

@ -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.
### Example: Compress with multiple encodings
```julia

Loading…
Cancel
Save