Versions in this module Expand all Collapse all v0 v0.18.2 Nov 12, 2022 Changes in this version + type Promise struct + func NewPromise() *Promise[T] + func NewPromiseWithErr(err error) *Promise[T] + func NewPromiseWithResult(val T, err error) *Promise[T] + func (p *Promise[T]) Await(ctx context.Context) (val T, err error) + func (p *Promise[T]) SetResult(val T, err error) bool