hmole
04/21/2018, 4:49 PMjw
04/21/2018, 4:49 PMjw
04/21/2018, 4:50 PMalec
04/21/2018, 4:50 PMalec
04/21/2018, 4:50 PMalec
04/21/2018, 4:50 PMalec
04/21/2018, 4:50 PMjw
04/21/2018, 4:51 PMalec
04/21/2018, 4:51 PMhmole
04/21/2018, 5:13 PMjw
04/21/2018, 7:12 PMhmole
04/23/2018, 7:55 AMalec
04/23/2018, 10:10 AMbdawg.io
05/02/2018, 3:54 PMreader.nextString()
give me the whole object as a string? I’m trying to split [{...}, {...}, {...}]
into a list of JSON object strings listOf("{...}", "{...}", "{...}")
jw
05/02/2018, 3:57 PMbdawg.io
05/02/2018, 3:59 PMjw
05/02/2018, 4:18 PMjw
05/02/2018, 4:19 PMeric
05/02/2018, 4:26 PMbdawg.io
05/02/2018, 4:38 PM[{ ... req1 ... }, { ... req2 ... }]
and non-batch { ... single req ... }
support as defined in the jsonrpc.org 2.0 specjw
05/02/2018, 4:41 PMbdawg.io
05/16/2018, 4:22 AMUnit
support useful in Moshi, anyone up for a code review of my adapter?bdawg.io
05/16/2018, 4:23 AMgildor
05/16/2018, 4:40 AMrook
05/25/2018, 9:32 PMonError
to handle network errors was bad practice. I’m trying to convert one of my calls that is modeled this way, but I’m finding that I lose a little bit of the functionality I relied on in handling network errors the other way.
old way:
someService.someCall()
.subscribe({ response ->
//positive response things
}, { e ->
when(e) {
is HttpException -> //do something
is UnknownHostException -> //do something else
}
new way:
someService.someCall()
.subscribe({ response ->
if(response.isSuccessful()){
//positive response things
} else {
//can no longer check exception types here
}
},{ e ->
//handle really bad stuff here
})
rook
05/25/2018, 9:32 PMdave08
05/27/2018, 10:53 AMuser
05/28/2018, 4:49 AMuser
05/28/2018, 5:00 AMdave08
05/28/2018, 6:11 AMproduce
on a custom thread pool like you said. I'm currently using your extension function for await
of the request. I'm not to clear on how to implement the parts, should I make multiple requests with a Range header concurrently, if so, what is reasonable amount. Also, would source reads and sink writes benefit from concurrency and using coroutine channels?