Documentation ¶
Index ¶
- type Func
- type Promise
- func (p Promise[T]) Deliver(value T)
- func (p Promise[T]) Fail(err error)
- func (p Promise[T]) Inject(target *T) error
- func (p Promise[T]) OnError(cb func(err error)) Promise[T]
- func (p Promise[T]) OnReady(cb func()) Promise[T]
- func (p Promise[T]) OnSuccess(cb func(value T)) Promise[T]
- func (p Promise[T]) Ready() bool
- func (p Promise[T]) Wait() (T, error)
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Promise ¶
type Promise[T any] struct { // contains filtered or unexported fields }
func NewDeliveredPromise ¶
func NewFailedPromise ¶
func NewPromise ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) ProcessAll ¶
func (w *Worker) ProcessAll()
func (*Worker) ProcessCount ¶
func (*Worker) ProcessDuration ¶
Click to show internal directories.
Click to hide internal directories.