• Stars
    star
    54
  • Rank 525,867 (Top 11 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created over 6 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Highly concurrent drop-in replacement for bufio.Writer

concurrent-writer Build Status Go Report Card Coverage GoDoc

Highly concurrent drop-in replacement for bufio.Writer.

concurrent.Writer implements highly concurrent buffering for an io.Writer object. In particular, writes will not block while a Flush() call is in progress as long as enough buffer space is available.

Note however that writes will still block in a number of cases, e.g. when another write larger than the buffer size is in progress. Also, concurrent flushes (whether explicit or triggered by the buffer filling up) will block one another.