Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/free/concurrent-writer
Highly concurrent drop-in replacement for bufio.Writer
https://github.com/free/concurrent-writer
concurrent golang io multithreading non-blocking writer
Last synced: about 1 month ago
JSON representation
Highly concurrent drop-in replacement for bufio.Writer
- Host: GitHub
- URL: https://github.com/free/concurrent-writer
- Owner: free
- License: apache-2.0
- Created: 2017-09-18T15:29:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-17T21:28:32.000Z (about 7 years ago)
- Last Synced: 2024-04-30T12:01:02.827Z (9 months ago)
- Topics: concurrent, golang, io, multithreading, non-blocking, writer
- Language: Go
- Size: 20.5 KB
- Stars: 54
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - concurrent-writer - Highly concurrent drop-in replacement for `bufio.Writer`. (Data Structures and Algorithms / Miscellaneous Data Structures and Algorithms)
- awesome-go - concurrent-writer - Highly concurrent drop-in replacement for `bufio.Writer`. (Data Structures and Algorithms / Miscellaneous Data Structures and Algorithms)
- awesome-go - concurrent-writer - Highly concurrent drop-in replacement for bufio.Writer - ★ 10 (Data Structures)
- awesome-go-extra - concurrent-writer - in replacement for bufio.Writer|45|8|0|2017-09-18T15:29:59Z|2017-11-17T21:28:32Z| (Generators / Miscellaneous Data Structures and Algorithms)
README
# concurrent-writer [![Build Status](https://travis-ci.org/free/concurrent-writer.svg)](https://travis-ci.org/free/concurrent-writer) [![Go Report Card](https://goreportcard.com/badge/github.com/free/concurrent-writer)](https://goreportcard.com/report/github.com/free/concurrent-writer) [![Coverage](https://gocover.io/_badge/github.com/free/concurrent-writer/concurrent)](https://gocover.io/github.com/free/concurrent-writer/concurrent) [![GoDoc](https://godoc.org/github.com/free/concurrent-writer/concurrent?status.svg)](https://godoc.org/github.com/free/concurrent-writer/concurrent)
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.