Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/girdharshubham/goconcurrency
- Owner: girdharshubham
- Created: 2020-01-14T07:22:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-14T07:24:34.000Z (almost 5 years ago)
- Last Synced: 2024-10-12T16:16:54.105Z (2 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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```