task

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Result added in v0.0.4

func Result[T any](task *Task) *T

Types

type Awaitable added in v0.0.2

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

type Builder

type Builder struct {
}

func (*Builder) ForkJoin

func (tb *Builder) ForkJoin(f func(*Awaitable))

type Task

type Task struct {
	Ptr unsafe.Pointer
	Err error
}

func Await

func Await[T any](c *Awaitable, f func() (T, error)) *Task

Jump to

Keyboard shortcuts

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