package
0.4.1
Repository: https://github.com/obsidiandynamics/libstdgo.git
Documentation: pkg.go.dev

# Functions

Forever returns a context that never times out.
I64Equal tests that the value equals a target value.
I64GreaterThan tests that the value is greater than the given target value.
I64GreaterThanOrEqual tests that the value is greater than or equal to the given target value.
I64LessThan tests that the value is less than the given target value.
I64LessThanOrEqual tests that the value is less than or equal to the given target value.
I64Not produces a logical inverse of the given condition.
NewAtomicCounter creates a new counter, optionally assigning its value to the given initial value (0 by default).
NewAtomicReference creates a new reference, optionally assigning its contents to the given initial referent (nil by default).
NewDeadline creates a new Deadline with the specified interval.
NewScoreboard creates a new scoreboard instance with an optionally specified concurrency level, controlling the number of internal shards.
Nop is a no-op function, useful for coverage-testing empty branches (e.g.
RefEqual tests that the encapsulated referent equals a target referent.
RefNil checks that the current referent is nil.
RefNot produces a logical inverse of the given condition.
Timeout returns a context that will expire within the given timeout.

# Constants

DefaultConcurrency is the default level of concurrency applied in the scoreboard constructor.
DefaultCounterCheckInterval is the default check interval used by Await/AwaitCtx/Drain/Fill.
DefaultReferenceCheckInterval is the default check interval used by Await/AwaitCtx.
DefaultScoreboardCheckInterval is the default check interval used by Await/AwaitCtx/Drain/Fill.
Indefinitely is a constant that represents the longest allowable duration (approx.

# Interfaces

AtomicCounter encapsulates an int64 value that may updated atomically.
AtomicReference encapsulates a pointer that may updated atomically.
Deadline tracks the time a task was last run and conditionally runs a task if the deadline has lapsed.
Scoreboard is a compactly represented map of atomic counters, where a counter takes up a map slot only if it is not equal to zero.

# Type aliases

I64Condition is a predicate that checks whether the current (supplied) value meets some condition, returning true if the condition is met.
RefCondition is a predicate that checks whether the current (supplied) referent meets some condition, returning true if the condition is met.