# Packages
No description provided by the author
# Functions
CancelledContext returns a cancelled context.
Completed returns a completed future.
DeadlineContext returns a context with a deadline.
Exited returns a routine which has exited with the given result and status.
Go runs a function in a new routine, recovers on panics.
GoPool runs a function in a pool, recovers on panics.
NewContext returns a new cancellable context.
NewLock returns a new unlocked lock.
NewPromise returns a pending promise.
NewQueue returns an empty queue.
NewRoutinePool returns a new goroutine pool.
NewService returns a new stopped service.
NewStopGroup creates a new stop group.
NewWaitLock returns a new unlocked lock.
NextContext returns a child context.
NextDeadlineContext returns a child context with a deadline.
NextTimeoutContext returns a child context with a timeout.
NoContext returns a non-cancellable background context.
Rejected returns a rejected future.
Resolved returns a successful future.
ReverseFlag returns a new flag which reverses the original one.
Run runs a function in a new routine, and returns the result, recovers on panics.
RunPool runs a function in a routine pool, and returns the result, recovers on panics.
SetFlag returns a new set flag.
StdContext returns a standard library context from an async one.
StopAll stops all routines, but does not await their stop.
StopWait stops a routine and awaits it stop.
StopWaitAll stops and awaits all routines.
TimeoutContext returns a context with a timeout.
UnsetFlag returns a new unset flag.
# Interfaces
Flag is a read-only boolean flag that can be waited on until set.
Future represents a result available in the future.
FutureDyn is a future interface without generics, i.e.
MutFlag is a routine-safe boolean flag that can be set, reset, and waited on until set.
Promise is a future which can be completed.
Queue is an unbounded FIFO queue.
Routine is an async routine which returns the result as a future, recovers on panics, and can be cancelled.
RoutineDyn is a routine interface without generics, i.e.
Service is a service which can be started and stopped.
No description provided by the author
WaitLock is a lock which allows others to wait until it is unlocked.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
FutureGroup is a group of futures of the same type.
FutureGroupDyn is a group of futures of different types.
RoutineGroup is a group of routines of the same type.
RoutineGroupDyn is a group of routines of different types.
RoutinePool allows to reuse goroutines with preallocated big stacks.