Documentation ¶
Index ¶
- type AggregateError
- type Promise
- func NewPromise[T any](executor func() (T, error)) *Promise[T]
- func NewPromiseContext[T any](ctx context.Context, executor func() (T, error)) *Promise[T]
- func PromiseAll[T any](promises ...*Promise[T]) *Promise[[]T]
- func PromiseAllContext[T any](ctx context.Context, promises ...*Promise[T]) *Promise[[]T]
- func PromiseAny[T any](promises ...*Promise[T]) *Promise[T]
- func PromiseAnyContext[T any](ctx context.Context, promises ...*Promise[T]) *Promise[T]
- func PromiseRace[T any](promises ...*Promise[T]) *Promise[T]
- func PromiseRaceContext[T any](ctx context.Context, promises ...*Promise[T]) *Promise[T]
- type PromiseState
- type RBMutex
- type RToken
- type WaitGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateError ¶ added in v1.7.12
type AggregateError struct {
Errors []error
}
func (*AggregateError) Error ¶ added in v1.7.12
func (ae *AggregateError) Error() string
type Promise ¶ added in v1.7.12
type Promise[T any] struct { // contains filtered or unexported fields }
func NewPromise ¶ added in v1.7.12
func NewPromiseContext ¶ added in v1.7.12
func PromiseAll ¶ added in v1.7.12
func PromiseAllContext ¶ added in v1.7.12
func PromiseAny ¶ added in v1.7.12
func PromiseAnyContext ¶ added in v1.7.12
func PromiseRace ¶ added in v1.7.12
func PromiseRaceContext ¶ added in v1.7.12
type PromiseState ¶ added in v1.7.12
type PromiseState uint8
type RBMutex ¶
type RBMutex struct {
// contains filtered or unexported fields
}
RBMutex is a reader biased reader/writer mutual exclusion lock
Click to show internal directories.
Click to hide internal directories.