Skip to content

Commit

Permalink
rpc_util: add experimental notices to SharedBufferPool
Browse files Browse the repository at this point in the history
  • Loading branch information
hueypark committed Mar 15, 2023
1 parent a44c200 commit 6b5000f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions shared_buffer_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,22 @@ package grpc
import "sync"

// SharedBufferPool is a pool of buffers that can be shared.
//
// # Experimental
//
// Notice: This API is EXPERIMENTAL and may be changed or removed in a
// later release.
type SharedBufferPool interface {
Get(length int) []byte
Put(*[]byte)
}

// NewSimpleSharedBufferPool creates a new SimpleSharedBufferPool.
//
// # Experimental
//
// Notice: This API is EXPERIMENTAL and may be changed or removed in a
// later release.
func NewSimpleSharedBufferPool() SharedBufferPool {
return &simpleSharedBufferPool{
Pool: sync.Pool{
Expand Down

0 comments on commit 6b5000f

Please sign in to comment.