package
Version:
v0.2.42
Opens a new window with list of versions in this module.
Published: Apr 24, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Future[T any] struct {
}
func Ready[T any](val T) *Future[T]
func Spawn[T any](fn func() (T, error)) *Future[T]
Spawns `fn` on a new goroutine and returns future which resolves on
completion.
func (fut *Future[T]) Get() (T, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.