channels

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Printer

func Printer(ctx context.Context, ch chan string)

Printer will print anything sent on the ch chan and will print tock every 200 milliseconds this will repeat forever until a context is Done, i.e. timed out or cancelled

func Sender

func Sender(ch chan string, done chan bool)

Sender sends "tick"" on ch until done is written to, then it sends "sender done." and exits

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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