package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Feb 24, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func DiscardCh[T any](ch <-chan T)
DiscardCh consumes all incoming messages from the given channel until it's closed.
type Future[T any] interface {
Send(T)
Await() T
}
Future is an object that holds a result value. The value may be read and
written asynchronously.
NewFuture creates a new Future[T]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.