Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FutureGroup ¶
type FutureGroup[T any] struct { // contains filtered or unexported fields }
FutureGroup is a container that collect execution result from multiple jobs.
func (*FutureGroup[T]) Go ¶
func (rg *FutureGroup[T]) Go(job FutureFunc[T])
Go registers a job that produce a T on success.
The job is called with a context, which is cancelled automatically if some other job return error.
Click to show internal directories.
Click to hide internal directories.