channel

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MPL-2.0 Imports: 1 Imported by: 12

Documentation

Overview

Package channel provides generic operations on channels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendWithContext

func SendWithContext[T any](ctx context.Context, ch chan<- T, val T) bool

SendWithContext tries to send a value to a channel which is aborted if the context is canceled.

Function returns true if the value was sent, false if the context was canceled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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