aghchan

package
v0.107.27 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package aghchan contains channel utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustReceive

func MustReceive[T any](c <-chan T, timeout time.Duration) (v T, ok bool)

MustReceive panics if it cannot receive a value form c before timeout runs out.

func Receive

func Receive[T any](c <-chan T, timeout time.Duration) (v T, ok bool, err error)

Receive returns an error if it cannot receive a value form c before timeout runs out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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