concurrency

package
v0.0.0-...-4fab462 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayMessage

func DisplayMessage(msg string)

func DisplayMessageWithChannel

func DisplayMessageWithChannel(ch chan string)

func Exit

func Exit(ch chan<- bool)

to the exit channel

func ReadFromIntegerChannel

func ReadFromIntegerChannel(ch chan int)

func ReadFromUnbufferedIntChannel

func ReadFromUnbufferedIntChannel(ch chan int)

// reading from a channnel returns data, and a boolean to check if closed. data, ok := <-ch

if !ok {
    fmt.Println("channel closed")
}

func RecvReadOnlyChannel

func RecvReadOnlyChannel(ch <-chan int)

func SendWriteOnlyChannel

func SendWriteOnlyChannel(ch chan<- int, numVals int)

func SimpleDisplayMessage

func SimpleDisplayMessage()

func WriteToIntegerChannel

func WriteToIntegerChannel(ch chan int, iterations int)

func WriteToUnbufferedIntChannel

func WriteToUnbufferedIntChannel(ch chan int, numIters int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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