Documentation
¶
Index ¶
- func Wait(ws ...Waiter) error
- func WaitForAll[T any](promises []*Promise[T]) (err error)
- type Func
- type Func2
- type MapFunc
- type Promise
- func MapAndThen[T, V, K any](ctx context.Context, p *Promise[T], mf MapFunc[T, K], f Func[K, V]) *Promise[V]
- func NewPromise[T, V any](ctx context.Context, t T, f Func[T, V]) *Promise[V]
- func Then[T, V any](ctx context.Context, p *Promise[T], f Func[T, V]) *Promise[V]
- func Zip[T, K, V any](ctx context.Context, pt *Promise[T], pk *Promise[K], f Func2[T, K, V]) *Promise[V]
- type Waiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForAll ¶
Types ¶
type Func ¶
func WithCancellation ¶
Click to show internal directories.
Click to hide internal directories.