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: 9 months 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 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-17T21:28:32.000Z (about 8 years ago)
- Last Synced: 2024-04-30T12:01:02.827Z (over 1 year 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 - in replacement for `bufio.Writer`. | - | - | - | (Data Structures / Advanced Console UIs)
- 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-Char - concurrent-writer - Highly concurrent drop-in replacement for `bufio.Writer`. (Data Structures / Advanced Console UIs)
- awesome-go-cn - concurrent-writer - in replacement for `bufio.Writer`.) (数据结构 / Advanced Console UIs)
- awesome-go - concurrent-writer - Highly concurrent drop-in replacement for `bufio.Writer`. (Data Structures / Advanced Console UIs)
- awesome-go - concurrent-writer - Highly concurrent drop-in replacement for bufio.Writer - ★ 10 (Data Structures)
- fucking-awesome-go - concurrent-writer - Highly concurrent drop-in replacement for `bufio.Writer`. (Data Structures and Algorithms / Miscellaneous Data Structures and Algorithms)
- awesome-go-cn - concurrent-writer - writer) [![godoc][D]](https://godoc.org/github.com/free/concurrent-writer) (数据结构与算法 / 杂项数据结构和算法)
- awesome-go - concurrent-writer - Highly concurrent drop-in replacement for `bufio.Writer`. (Data Structures and Algorithms / Miscellaneous Data Structures and Algorithms)
- awesome-go-with-stars - concurrent-writer - in replacement for bufio.Writer. | 2017-11-17 | (Data Integration Frameworks / Miscellaneous Data Structures and Algorithms)
- awesome-go - concurrent-writer - Highly concurrent drop-in replacement for `bufio.Writer`. (Data Structures / Advanced Console UIs)
- awesome-go-cn - concurrent-writer - in`替代品 (数据结构 / 标准 CLI)
- awesome-go-plus - concurrent-writer - Highly concurrent drop-in replacement for `bufio.Writer`.  (Data Structures and Algorithms / Miscellaneous Data Structures and Algorithms)
- 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)
- awesome-go - concurrent-writer - 高度并发的插入式替换 `bufio.Writer`。 (<span id="数据结构-data-structures">数据结构 Data Structures</span> / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go - concurrent-writer - Highly concurrent drop-in replacement for `bufio.Writer`. (Data Structures / Advanced Console UIs)
- awesome-go - concurrent-writer - Highly concurrent drop-in replacement for `bufio.Writer`. (Data Structures and Algorithms / Miscellaneous Data Structures and Algorithms)
- awesome-go-cn - concurrent-writer - writer) [![godoc][D]](https://godoc.org/github.com/free/concurrent-writer) (数据结构与算法 / 杂项数据结构和算法)
README
# concurrent-writer [](https://travis-ci.org/free/concurrent-writer) [](https://goreportcard.com/report/github.com/free/concurrent-writer) [](https://gocover.io/github.com/free/concurrent-writer/concurrent) [](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.