AI Features

Goroutines

Let’s learn about goroutines.

We'll cover the following...

We can define, create, and execute a new goroutine using the go keyword followed by a function name or an anonymous function. The go keyword makes the function call return immediately, while the function starts running in the background as a goroutine, and the rest of the program continues its execution. We can’t control or make any assumptions about ...