ursus
07/31/2019, 3:09 PMgildor
07/31/2019, 4:03 PMwell, yes the default setup soThere is no default setup, you choose from create() and createAsync() About blocking Also you loose features of okhttp dispatcher (limit amout of calls per host, limit amout of connections etc) and even more important, you make it completely non cancellable when use blocking call And yeah, also it make it non-safe to call from UI thread (especially rom suspend functions, where it’s just harmful) Reuse dispatchers, if you really want, but I don’t think that you get much from itcreate
ursus
07/31/2019, 10:06 PMgildor
07/31/2019, 11:23 PMursus
08/01/2019, 12:31 AMcreate
is just wrapped synch call afaik and it does cancel the socket