chapter7/

directory
v0.0.0-...-d6aaa9e Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0

Directories

Path Synopsis
patterns
pool
Example provided with help from Fatih Arslan and Gabriel Aszalos.
Example provided with help from Fatih Arslan and Gabriel Aszalos.
pool/main command
This sample program demonstrates how to use the pool package to share a simulated set of database connections.
This sample program demonstrates how to use the pool package to share a simulated set of database connections.
runner
Example is provided with help by Gabriel Aszalos.
Example is provided with help by Gabriel Aszalos.
runner/main command
This sample program demonstrates how to use a channel to monitor the amount of time the program is running and terminate the program if it runs too long.
This sample program demonstrates how to use a channel to monitor the amount of time the program is running and terminate the program if it runs too long.
search
Package search : search.go manages the searching of results against Google, Yahoo and Bing.
Package search : search.go manages the searching of results against Google, Yahoo and Bing.
search/main command
This sample program demonstrates how to implement a pattern for concurrent requesting results from different systems and either wait for all the results to return or just the first one.
This sample program demonstrates how to implement a pattern for concurrent requesting results from different systems and either wait for all the results to return or just the first one.
semaphore command
This sample program demonstrates how to implement a semaphore using channels that can allow multiple reads but a single write.
This sample program demonstrates how to implement a semaphore using channels that can allow multiple reads but a single write.
work
Example provided with help from Jason Waldrip.
Example provided with help from Jason Waldrip.
work/main command
This sample program demonstrates how to use the work package to use a pool of goroutines to get work done.
This sample program demonstrates how to use the work package to use a pool of goroutines to get work done.

Jump to

Keyboard shortcuts

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