That works too. Err() is guaranteed to return non-nil, either if the context was explicitly cancelled or its deadline was exceeded.
-- 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/34d29d19-218c-4938-bd97-3da7fb0fc050n%40googlegroups.com.