bmsantos
12/16/2015, 2:56 PMbmsantos
12/16/2015, 2:58 PMbmsantos
12/16/2015, 2:58 PMkittinunf
12/16/2015, 5:01 PMbmsantos
12/16/2015, 5:04 PMkittinunf
12/16/2015, 5:06 PMexecutor
as public
by design.kittinunf
12/16/2015, 5:07 PMManager.instance.executor = ….
bmsantos
12/16/2015, 5:08 PMkittinunf
12/16/2015, 5:08 PMkittinunf
12/16/2015, 5:08 PMkittinunf
12/16/2015, 5:10 PMkittinunf
12/16/2015, 5:11 PMbmsantos
12/16/2015, 5:12 PMManager.Companion.coalesce()
And something else that might allow the re-initialization of a desired Executor:
Manager.Companion.coalesce(executor:Executor)
bmsantos
12/16/2015, 5:14 PM"posts/${postId}".httpPut().body(post.json()).responseString { request, response, either ->
if (either is Either.Right) result = either.right
} .coalesce()
bmsantos
12/16/2015, 5:16 PMkittinunf
12/16/2015, 5:18 PMkittinunf
12/16/2015, 5:27 PMcoalesce()
, all Fuel
calls onward will be effected as well right?bmsantos
12/16/2015, 5:29 PMbmsantos
12/16/2015, 5:30 PMkittinunf
12/16/2015, 5:31 PMbmsantos
12/16/2015, 5:31 PMkittinunf
12/16/2015, 5:32 PMkittinunf
12/16/2015, 5:32 PMlambda
, we inherently use the async
version.kittinunf
12/16/2015, 5:33 PMsync
version is just a plain return objectbmsantos
12/16/2015, 5:33 PMkittinunf
12/16/2015, 5:35 PMval call = "posts/${postId}".httpPut().body(post.json()).responseString()
//synchronous
call.request = ...
call.response = ...
call.either = ...
kittinunf
12/16/2015, 5:40 PMbmsantos
12/16/2015, 5:41 PMgeetha.gubendran
12/20/2015, 2:12 AMgeetha.gubendran
12/20/2015, 2:13 AM