ctxchan

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](ctx context.Context, c <-chan T) (message T, ok bool)

Get waits for a message from the channel or returns false if the context is canceled

func Put

func Put[T any](ctx context.Context, c chan<- T, message T)

Put puts a message into a channel unless the context is canceled

Types

This section is empty.

Jump to

Keyboard shortcuts

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