Thread Unsafe detection for Sink, Source, Filesystem, Response etc.
The class of bugs like https://github.com/square/okhttp/issues/6723 are tricky to hunt down. We should consider how to wrap key Okio or OkHttp abstractions to detect unsafe thread use.
Maybe one that records and warns on switching threads, or concurrent use, or after a failure prints out the observed threads for any operation failing with a RuntimeException.
Probably also dual reading of a response? like a debug call to .string() before continuing to consume.
No current plans, and most recent issue was actually a WebSocket concurrency bug.
I think it's nice to have something like this, we're currently having a hard time troubleshooting inconsistent Segments... This doesn't happen a lot though