async

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Of added in v0.0.17

func Of[T any](task func() (T, error)) chan ActionResult[T]

Types

type ActionResult

type ActionResult[T any] struct {
	Result T
	Error  error
}

func NewActionResult

func NewActionResult[T any](result T, err error) ActionResult[T]

func NewErrorActionResult

func NewErrorActionResult[T any](err error) ActionResult[T]

type Stream added in v0.0.10

type Stream[T any] chan ActionResult[T]

func NewBufferedStream added in v0.0.10

func NewBufferedStream[T any](bufferSize uint) Stream[T]

func NewStream added in v0.0.10

func NewStream[T any]() Stream[T]

Jump to

Keyboard shortcuts

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