Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/girdharshubham/goconcurrency

Learning Template: Go concurrency primitives
https://github.com/girdharshubham/goconcurrency

Last synced: about 1 month ago
JSON representation

Learning Template: Go concurrency primitives

Awesome Lists containing this project

README

        

# Concurrency

## Goroutines
A goroutine is a function that is capable of running concurrently with other functions. To create a goroutine use the
keyword `go` followed by a function invocation. Each Goroutine is created initially with a stack size of **2KB**

## Channels
Channels can be thought os as typed FIFO queues through which you can send and receive values with the channel operator
, <-. The data flows in the direction of the <- operator

## Running the code
**Build the code**: ```go build main.go```
**Running the code**: ```./main```