internal

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAny

func FromAny[T any](ctx context.Context, src <-chan any, onErr func(error)) <-chan T

FromAny converts an any channel into a typed channel, invoking onErr on mismatches.

func ToAny

func ToAny[T any](ctx context.Context, src <-chan T) <-chan any

ToAny forwards typed values onto an any channel while respecting context cancellation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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