On Monday, 6 July 2020 14:53:55 UTC+1, Ian Davis wrote:
>
> Can you write your own ContextReader that checks ctx.Done in its Read 
> method?
>
>
Inside a ContextReader I can check ctx.Done *before* calling the wrapped 
Read method - but if the context isn't done at that point and I called the 
wrapped Read, it will be blocked at that point.

-- 
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/5069054f-19db-4bbc-89b4-c2a6ff58a270o%40googlegroups.com.

Reply via email to