Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllSettled ¶
func AllSettled[T any](chans ...chan T) chan []T
AllSettled takes an arbitrary number of channels and returns a single channel that will be closed once all of the given channels have either been closed or received one value through them. Inspired by JavaScript's Promise.allSettled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.