task

package module
v0.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Awaitable added in v0.0.2

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

type Builder

type Builder struct {
	MaxWorkers  int
	MaxCapacity int
}

func (*Builder) ForkJoin

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

type Result added in v0.0.4

type Result[T any] struct {
	Result T
	Err    error
}

type Task

type Task[T any] struct {
	Result T
	Err    error
}

func Await

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

Jump to

Keyboard shortcuts

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