Re: [Async-sig] avoiding accidentally calling blocking code

2018-02-14 Thread Nathaniel Smith
On Wed, Feb 14, 2018 at 12:42 AM, Chris Jerdonek wrote: > Thanks, Dima and Andrew, for your suggestions. > > Re: loop.slow_callback_duration, that's interesting. I didn't know > about that. However, it doesn't seem like that alone would work to > catch many operations that are normally fast, but s

Re: [Async-sig] avoiding accidentally calling blocking code

2018-02-14 Thread Andrew Svetlov
Mocking everything sounds promising but the problem is in *everything* word. slow_callback_duration is a viable compromise. Personally I don't care about fast blocking IO until it is really very fast. On Wed, Feb 14, 2018 at 10:42 AM Chris Jerdonek wrote: > Thanks, Dima and Andrew, for your sugg

Re: [Async-sig] avoiding accidentally calling blocking code

2018-02-14 Thread Chris Jerdonek
Thanks, Dima and Andrew, for your suggestions. Re: loop.slow_callback_duration, that's interesting. I didn't know about that. However, it doesn't seem like that alone would work to catch many operations that are normally fast, but strictly speaking blocking. For example, it seems like simple disk