Pregunta de entrevista de StackPath

Describe how to cancel goroutines

Respuesta de la entrevista

Anónimo

1 mar 2022

Broadcast the event over a channel and close it. Then have the goroutines poll to the check the cancellation state.