Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeferredFuture ¶
type DeferredFuture[T any] struct { // contains filtered or unexported fields }
func Deferred ¶
func Deferred[T any]() *DeferredFuture[T]
func (*DeferredFuture[T]) Await ¶
func (f *DeferredFuture[T]) Await() T
func (*DeferredFuture[T]) Resolve ¶
func (f *DeferredFuture[T]) Resolve(value T)
Click to show internal directories.
Click to hide internal directories.