android_volley_examples icon indicating copy to clipboard operation
android_volley_examples copied to clipboard

Synchronous Example

Open spamwax opened this issue 9 years ago • 2 comments

I was wondering if you could add a synchronous example to your set that uses RequestFuture and future.get(4, TimeUnit.SECONDS) I followed the sample in the source code of the RequestFuture but future.get() blocks first and then times out with no result!

Thanks

spamwax avatar Dec 17 '15 09:12 spamwax

Hi, did you tested your request if it executes properly without using Future, i.e. as normal request?

ogrebgr avatar Dec 22 '15 08:12 ogrebgr

@ogrebgr yes, it does work properly. Adding a breakpoint I can trace the code and see the result that's returned from the server. But it seems it's happening in a different thread and I can't get it to send the results back to the calling thread.

spamwax avatar Jan 01 '16 07:01 spamwax