Synchronization and asynchronous computation package for Go
async.Map
interface in a thread-safe manner by delegating load/store operations to the underlying sync.Map
.async.Map
interface in a thread-safe manner, delegating load/store operations to one of the underlying async.SynchronizedMap
s (shards), using a key hash to calculate the shard number.f func() (T, error)
and returning (T, error)
.context.Context
support for graceful unblocking.Can be found in the examples directory/tests.
Licensed under the MIT License.