/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

timilearning.com
| | golangbot.com
1.7 parsecs away

Travel
| | A Mutex is used to provide a locking mechanism to ensure that only one Goroutine is running the critical section of code at any point in time. Mutexes help avoid race conditions.
| | aarol.dev
3.9 parsecs away

Travel
| | Compared to Javascript, Python and other single threaded languages, Go takes a very different approach to I was having difficulties understanding how concurrent ...
| | hjr265.me
2.5 parsecs away

Travel
| | Concurrency is one of the central features of Go. And, to build concurrent programs in Go, you need goroutines. A goroutine is like a thread, but lighter. Much lighter. And, like any other built-in feature of Go, using it is dead simple: 1 2 3 4 5 6 7 package main func main() { go func() { println("Hello World") // Print "Hello World" from a different goroutine. }() } Wait. That didn't print anything.
| | tenthousandmeters.com
24.6 parsecs away

Travel
| Mark functions as async. Call them with await. All of a sudden, your program becomes asynchronous - it can do useful things while it waits for...