Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theskyinflames/concurrent-fifo
Go thread safe FIFO implementation
https://github.com/theskyinflames/concurrent-fifo
concurrency fifo go golang golang-library library theskyinflames thread-safe threadsafe
Last synced: 16 days ago
JSON representation
Go thread safe FIFO implementation
- Host: GitHub
- URL: https://github.com/theskyinflames/concurrent-fifo
- Owner: theskyinflames
- Created: 2018-10-06T21:42:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-07T11:20:12.000Z (over 6 years ago)
- Last Synced: 2024-11-09T21:32:52.955Z (2 months ago)
- Topics: concurrency, fifo, go, golang, golang-library, library, theskyinflames, thread-safe, threadsafe
- Language: Go
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fifo
It's a simple FIFO thread safe implementation## Usage
```go
func main() {
fifo := GetFifo(int32(4))fifo.Put(4)
fifo.Put(3)
fifo.Put(2)
fifo.Put(1)
println(fifo.Pop().(int))
println(fifo.Pop().(int))
println(fifo.Pop().(int))
println(fifo.Pop().(int))
}
```