Too Long; Didn't Read
Go programming language has built-in support for concurrency, based on Tony Hoare's “Communicating Sequential Processes’s’. Go is a special slogan: Do not communicate by sharing memory, instead; share memory. In 1.14 Go had only cooperative scheduling, but in 1.15 Go has now introduced asynchronous preemption. When a goroutine is running for more than 10 seconds, the Go scheduler will try to preempt it. The version below will preempt resources from an infinite loop and print the value.