Package io.javago.sync
package io.javago.sync
Provides Java classes implementing the types and functions found in Go's
sync
package.
For Java implementations of Go's sync.Lock
, sync.Mutex
, sync.RWMutex
, and sync.Cond
,
use Lock
, ReentrantLock
,
ReentrantReadWriteLock
, and Condition
respectively.
For Java implementations of Go's sync.Atomic
package, use the java.util.concurrent.atomic
package.-
ClassDescriptionMap<K,
V> TheMap
class implements Go'ssync.Map
.TheOnce
class implements Go'ssync.Once
.TheOnceFunc
class implements Go'ssync.OnceFunc
.OnceValue<T>TheOnceValue
class implements Go'ssync.OnceValue
.OnceValues<S,T> TheOnceValues
class implements Go'ssync.OnceValues
.OnceValues.Values<S,T> A record that holds a pair of values.Pool<T>ThePool
class implements Go'ssync.Pool
.TheWaitGroup
class implements Go'ssync.WaitGroup
.