sync

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

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

Signal represents a signal that can be sent out on many channels at once.

func NewSignal

func NewSignal() *Signal

NewSignal creates a new signal.

func (*Signal) Signal

func (s *Signal) Signal(data interface{})

Signal sends a signal to the watchers.

func (*Signal) Watch

func (s *Signal) Watch() chan interface{}

Watch watches for a signal to be fired.

Jump to

Keyboard shortcuts

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