mpmc

package
v0.0.0-...-672060c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

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

func (*Consumer[T]) Receive

func (c *Consumer[T]) Receive() (*T, error)

type MPMC

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

func NewMPMC

func NewMPMC[T any](capacity uint64) *MPMC[T]

func (*MPMC[T]) Send

func (mpmc *MPMC[T]) Send(value T)

func (*MPMC[T]) Subscribe

func (mpmc *MPMC[T]) Subscribe() *Consumer[T]

Jump to

Keyboard shortcuts

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