▲ | destel 4 days ago | |
It will. Otherwise the example wouldn't make sense. There's one important detail I haven't clarified enough in that part of the readme. For proper pipeline termination the context has to be cancelled. So it should have been be Like: func main() { ctx, cancel := context.WithCancel(context.Background()) defer cancel()
One of the reasons I've ommited context cancellation in this and some other examples is because everything's happening inside the main function. I'll probably add cancellations to avoid confusion. |