Thanks Ian, On Sun, Apr 4, 2021, at 19:42, Ian Lance Taylor wrote: > Speaking more broadly, while a context is often a deadline, it can > also be cancelled for other reasons (via ctx.WithCancel). Those other > reasons can include things like "we no longer need this data." So > that is an argument for why the context should be honored even if > there is a deadline.
I don't know that the deadline is necessarily the important part (since the same applies to the conn itself which can be canceled by the user with conn.SetDeadline(time.Unix(1,0) or something along those line). But I take your point about the semantics of the context meaning "cancel this action". —Sam -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/8d88e430-7e3c-4894-8a04-ca21126d38a5%40www.fastmail.com.