package linkedbuffer
Import Path
github.com/alitto/pond/v2/internal/linkedbuffer (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Package-Level Type Names (only one)
Type Parameters:
T: any
LinkedBuffer implements an unbounded generic buffer that can be written to and read from concurrently.
It is implemented using a linked list of buffers.
Len returns the number of elements in the buffer that haven't yet been read
Read reads values from the buffer and returns the number of elements read
ReadCount returns the number of elements read from the buffer since it was created
Write writes values to the buffer
WriteCount returns the number of elements written to the buffer since it was created
func NewLinkedBuffer[T](initialCapacity, maxCapacity int) *LinkedBuffer[T]
Package-Level Functions (only one)
Type Parameters:
T: any
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |