internal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Receiver

type Receiver[T any] struct {
	Channel chan T
}

Receiver needs to be exported to be used as an RPC handler.

func NewReceiver

func NewReceiver[T any](buf uint) *Receiver[T]

func (*Receiver[T]) Close

func (r *Receiver[T]) Close(_ int, _ *bool) (err error)

Close implements the function signature for an RPC handler. It handles a client closing the communication over the rpchan.

func (*Receiver[T]) Send

func (r *Receiver[T]) Send(item T, _ *bool) (err error)

Send implements the function signature for an RPC handler.

Jump to

Keyboard shortcuts

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