simple

package
Version: v0.0.0-...-09f00c6 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

=================================================== THIS IS A SOLUTION. DO NOT PEEK. ===================================================

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcurrentPipeline

func ConcurrentPipeline()

func GenerateNum

func GenerateNum() int

GenerateNum returns a random integer between minResult and maxResult.

func GenerateNumbers

func GenerateNumbers() <-chan int

func GenerateNumbersConcurrently

func GenerateNumbersConcurrently() <-chan int

func NoPipleline

func NoPipleline()

NoPipeline generates 50 squares of random numbers, one after the other.

func Pipeline

func Pipeline()

func PrintNumbers

func PrintNumbers(in <-chan int)

func SlowSquare

func SlowSquare(in int) int

SlowSquare returns the value of in squared. It does this slowly.

func SquareNumbers

func SquareNumbers(in <-chan int) <-chan int

func SquareNumbersConcurrently

func SquareNumbersConcurrently(in <-chan int) <-chan int

Types

This section is empty.

Jump to

Keyboard shortcuts

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