jkwatson
01/01/2016, 5:24 PMkittinunf
01/02/2016, 5:31 PMsync()
, it will block until the http call return. It should accommodate your need more or less. :)jkwatson
01/02/2016, 5:36 PMbmsantos
01/03/2016, 2:51 AMjkwatson
01/03/2016, 3:36 AMjkwatson
01/03/2016, 3:36 AMbmsantos
01/03/2016, 11:41 PMkittinunf
01/04/2016, 7:35 AMkittinunf
01/04/2016, 7:37 AMmplatvoet
01/04/2016, 7:49 AMURLConnection
does not support any real asynchronous operation and thus will always use a Thread for any network operations. The asynchronous part can be build on top of that so the current API can remain the same.bmsantos
01/04/2016, 10:19 PMyoavst
01/16/2016, 11:59 AMResult.success { data ->
}
Result.fail { exception ->
}
it's like fold
but if you care only about success or failure (maybe for testing)yoavst
01/16/2016, 12:01 PMyoavst
01/16/2016, 12:35 PM/**
* Created by Kittinun Vantasin on 5/13/15.
*/
headers? IDEA marks it as warning 😕kittinunf
01/16/2016, 12:54 PMyoavst
01/16/2016, 12:54 PMpublic
from most of placesyoavst
01/16/2016, 12:55 PMkittinunf
01/16/2016, 12:56 PMyoavst
01/16/2016, 12:58 PMyoavst
01/16/2016, 12:59 PMyoavst
01/16/2016, 12:59 PMkittinunf
01/16/2016, 1:00 PMgradlew test --debug
yoavst
01/16/2016, 1:01 PMyoavst
01/16/2016, 1:01 PMyoavst
01/16/2016, 1:09 PMfuel
module's folder or the project's folder?yoavst
01/16/2016, 1:10 PMyoavst
01/16/2016, 1:14 PMyoavst
01/16/2016, 1:26 PMTaskRequest
by itself blocking?yoavst
01/16/2016, 2:05 PMresponseX
to Request.responseX
extension method.
2. TaskRequest
now extends Callable<Response>
instead of Callable<Unit>
3, AsyncTaskRequest
wraps TaskRequest
with support for callbacks. (What does it returns if it fails on async mode? I think it should return Response?
instead. Currently it is TODO
and returns Response()
).yoavst
01/16/2016, 2:06 PM