package concurrent

Import Path
	github.com/modern-go/concurrent (on go.dev)

Dependency Relation
	imports 6 packages, and imported by 2 packages


Package-Level Type Names (total 3, all are exported)
/* sort exporteds by: | */
( T) Go(handler func(ctx context.Context)) *UnboundedExecutor
Map sync.Map Delete deletes the value for a key. Load returns the value stored in the map for a key, or nil if no value is present. The ok result indicates whether value was found in the map. LoadAndDelete deletes the value for a key, returning the previous value if any. The loaded result reports whether the key was present. LoadOrStore returns the existing value for the key if present. Otherwise, it stores and returns the given value. The loaded result is true if the value was loaded, false if stored. Range calls f sequentially for each key and value present in the map. If f returns false, range stops the iteration. Range does not necessarily correspond to any consistent snapshot of the Map's contents: no key will be visited more than once, but if the value for any key is stored or deleted concurrently, Range may reflect any mapping for that key from any point during the Range call. Range may be O(N) with the number of elements in the map even if f returns false after a constant number of calls. Store sets the value for a key. func NewMap() *Map
(*T) Go(handler func(ctx context.Context)) (*T) Stop() (*T) StopAndWait(ctx context.Context) (*T) StopAndWaitForever() *T : Executor func NewUnboundedExecutor() *UnboundedExecutor var GlobalUnboundedExecutor *UnboundedExecutor
Package-Level Functions (total 2, both are exported)
func NewMap() *Map
Package-Level Variables (total 3, all are exported)
GlobalUnboundedExecutor has the life cycle of the program itself any goroutine want to be shutdown before main exit can be started from this executor
var LogInfo func(event string, properties ...interface{})
var LogPanic func(recovered interface{}, properties ...interface{}) interface{}
Package-Level Constants (only one, which is exported)
const StopSignal = "STOP!"