Chan

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 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 Event

type Event struct {
	// contains filtered or unexported fields
}

func NewEvent

func NewEvent() *Event

func (*Event) Close

func (e *Event) Close()

func (*Event) Notify

func (e *Event) Notify(data interface{})

func (*Event) Wait

func (e *Event) Wait(timeout int64) interface{}

type TempEvent

type TempEvent struct {
	// contains filtered or unexported fields
}

func NewTempEvent

func NewTempEvent() *TempEvent

func (*TempEvent) Notify

func (e *TempEvent) Notify(key string, data interface{})

func (*TempEvent) Wait

func (e *TempEvent) Wait(key string, timeout int64) (message interface{})

Jump to

Keyboard shortcuts

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