Intermediate Go (Golang)
Q54 / 100

What is a goroutine leak?

Correct! Well done.

Incorrect.

The correct answer is B) A goroutine that blocks forever because its channel is never closed or read from, preventing garbage collection

B

Correct Answer

A goroutine that blocks forever because its channel is never closed or read from, preventing garbage collection

Explanation

Goroutine leaks occur when goroutines wait for channels that are never signaled. Use context cancellation or timeout to ensure goroutines can exit.

Progress
54/100