gointermediate

Go Worker Goroutine Channel

Bounded concurrent worker reading jobs and sending results

By ApeType Staff·7 lines·137 characters·1,420 total attempts
SOURCE CODE·go
package worker func Worker(id int, jobs <-chan int, results chan<- int) { for j := range jobs { results <- j * 2 } }
UTF-8 · Tab indentationStandard Strict Parsing
TRANSCRIBE

Ready when you are.

Test your muscle memory and transcription speed against this exact snippet.

Start Typing
Tip: Press Esc anytime to restart

Best runs on this snippet

#TypistAccWPM
1Mohammed Khalid100%94
2Mohammed Khalid100%94
3Abel Gideon99.24%66
4Abel Gideon99.24%66
5Abel Gideon97.73%59