package
0.4.4
Repository: https://github.com/smallnest/exp.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
New creates a new Pool with the provided new function.
NewExchanger creates a new exchanger.
No description provided by the author
NewPhaser creates a new Phaser instance.
No description provided by the author
NewShard creates a new Shard and initializes it with runtime.GOMAXPROCS.
SafeClose closes the closer safely.
SafeCloseChan closes the channel ch safely.
SafeSendChan sends value to the channel ch safely even if ch has been closed.

# Variables

ErrClosedChannel is returned when a send is attempted on a closed channel.

# Structs

Exchanger is a synchronization primitive that allows two goroutines to exchange values.
Listener is a handle to a horn listener.
Map is like a Go map[interface{}]interface{} but is safe for concurrent use by multiple goroutines without additional locking or coordination.
No description provided by the author
Phaser is a reusable synchronization barrier, similar in functionality to java Phaser.
A Pool is a generic wrapper around a sync.Pool.
Shard is a container of values of the same type have n data of type T.