What are you reading from or writing to? Doing a
decent implementation of a reader or writer timeout
on top of an arbitrary io.Reader or io.Writer is
not possible in general, because it would involve
leaving garbage goroutines around on timeout.
If you're using a network connection, there is support
for timeouts.
> --
> 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...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.