Discover Packages
github.com/cosi-project/runtime
pkg
future
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Apr 4, 2024
License: MPL-2.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
Documentation
¶
Package future provides a set of functions for observing the state of a running program.
func Go[T any ](fn func() T) <-chan T
Go runs a function in a goroutine and returns a channel that will receive the result.
It will close the channel when the function returns.
GoContext runs a function in a goroutine and returns a channel that will receive the result. It will close the
channel and cancel the context when the function returns.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.