Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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))
}
```