future

package
v0.0.0-...-1f6a80c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FurtureTaskState

type FurtureTaskState int
const (
	Poll FurtureTaskState = iota
	Ready
)

type Future

type Future struct {
	// contains filtered or unexported fields
}

func New

func New(fn func() (any, error)) *Future

func (*Future) GetResult

func (f *Future) GetResult() (any, error)

func (*Future) GetState

func (f *Future) GetState() FurtureTaskState

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL