Async/Await vs Goroutines: A Mindset Shift
Goroutines explained for C# developers who think in async/await and Task. No coloured functions, no thread affinity, and a different mental model.
Goroutines explained for C# developers who think in async/await and Task. No coloured functions, no thread affinity, and a different mental model.
Go channels explained for C# developers who know BlockingCollection and message passing. Buffered, unbuffered, closing, ranging and the classic gotchas.
Go's context.Context compared with C# CancellationToken. Cancellation, deadlines and request-scoped values, and why every I/O function takes one.
Mutexes, RWMutex, WaitGroup, Once and atomic in Go's sync package, compared with lock and SemaphoreSlim in C#. When to use them instead of channels.
Go's select statement for multiplexing channels. Timeouts, non-blocking operations and cancellation, compared with Task.WhenAny in C#.