chanx

package
v0.0.0-...-b1b21d8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: LGPL-3.0 Imports: 4 Imported by: 0

README

功能介绍

  1. 无限长度的chan

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client[T any] struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient[T any](preCtx context.Context) *Client[T]

func (*Client[T]) Add

func (obj *Client[T]) Add(val T) error

func (*Client[T]) Chan

func (obj *Client[T]) Chan() <-chan T

func (*Client[T]) Close

func (obj *Client[T]) Close()

func (*Client[T]) Done

func (obj *Client[T]) Done() <-chan struct{}

func (*Client[T]) Join

func (obj *Client[T]) Join()

func (*Client[T]) Len

func (obj *Client[T]) Len() int64

Jump to

Keyboard shortcuts

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