concurrency/

directory
v0.0.0-...-9882766 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: Apache-2.0

Directories

Path Synopsis
This example is the same as 04, just that the checking of data is done with a range loop instead of checking if the loop is closed or not.
This example is the same as 04, just that the checking of data is done with a range loop instead of checking if the loop is closed or not.
testing file reading in one go routine and sending whats read to other goroutine
testing file reading in one go routine and sending whats read to other goroutine
Test how to pass pointers to array via a channel, change it, and check if the change is reflected in the Go routine where the array was created.
Test how to pass pointers to array via a channel, change it, and check if the change is reflected in the Go routine where the array was created.
The idea here is to create buffer, and if the buffer is saturated, then drop the request.
The idea here is to create buffer, and if the buffer is saturated, then drop the request.
Spawn up a bunch of goroutines who want to put a single nr.
Spawn up a bunch of goroutines who want to put a single nr.
Make a buffered reader of channel.
Make a buffered reader of channel.
cmd
Make a buffered reader of channel.
Make a buffered reader of channel.
cmd
Example for checking if a channel is closed.
Example for checking if a channel is closed.
chan struct{} are used for signaling.
chan struct{} are used for signaling.
Testing the concept of channels who contains another channel of struct{} for signaling.
Testing the concept of channels who contains another channel of struct{} for signaling.
Testing the concept of channels who contains another channel of struct{} for signaling.
Testing the concept of channels who contains another channel of struct{} for signaling.
The purpose of this test is to learn more on context and cancelation of http request and responses.
The purpose of this test is to learn more on context and cancelation of http request and responses.
Example is for testing out setting channels to nil.
Example is for testing out setting channels to nil.

Jump to

Keyboard shortcuts

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