[go-nuts] Monotonic clock: is my code affected?

2017-02-27 Thread Olivier Mengué
Hi, I wrote a library that allows to compute the hour/day/week/month/year bounds in the location of a given time.Time value. This deals with wall clock, not monotonic clock. I just read the monotonic clock proposal at https://github.com/golang/proposal/blob/master/design/12914-monotonic.md I

Re: [go-nuts] Clean shutdown when blocked on I/O

2020-07-13 Thread Olivier Mengué
Le dimanche 12 juillet 2020 17:20:36 UTC+2, Olivier Mengué a écrit : > > > > Le lundi 6 juillet 2020 19:36:24 UTC+2, Brian Candler a écrit : >> >> On Monday, 6 July 2020 14:53:55 UTC+1, Ian Davis wrote: >>> >>> Can you write your own ContextReader th

Re: [go-nuts] Clean shutdown when blocked on I/O

2020-07-12 Thread Olivier Mengué
Le lundi 6 juillet 2020 19:36:24 UTC+2, Brian Candler a écrit : > > 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 >