Top "Future" questions

A placeholder for the result of a calculation before the calculation has completed.

Actual implementation of Callable and Future

I am in the process of understanding fine grain util.concurrency. Where is implementation of the Java Callable and Future …

java concurrency theory future callable
what is the advantage of using FutureTask over Callable?

There are two approaches to submitting and polling task for result FutureTask futureTask = new FutureTask<String>(callable); Use …

java multithreading concurrency future
Future task of ExecutorService not truly cancelling

I push my Futures from a ExecutorService into a hash map. Later, I may call cancel on Futures from within …

java concurrency executorservice future
How to reverse listview in Flutter

I implemented a listview which get data from a json. I followed this implementation. How could i reverse the order …

list listview dart flutter future
Why does the andThen of Future not chain the result?

The andThen meaning I learned from this answer is a function composer. Say that f andThen g andThen h will …

scala future
How can I make A future of future into one future object?

Env: Akka 2.1, scala version 2.10.M6, JDK 1.7,u5 Now is my problem: I have: future1 = Futures.future(new Callable<Future&…

java scala sequence akka future
Make API multiple times with AsyncRestTemplate and wait for all to complete

I have to make Rest API invocation using RestTemplate multiple time with different parameters. API is same but it is …

java spring multithreading future asyncresttemplate
Flutter : 'Future <dynamic>' is not a subtype of type bool

I was trying to implement a simple login/logout functionality. My scenario is this: I have 2 pages ( login page and …

flutter dart future flutter-futurebuilder
How do I return error from a Future in dart?

In my flutter app, I have a future that handles http requests and returns the decoded data. But I want …

flutter dart future
How to compose Observables to avoid the given nested and dependent callbacks?

In this blog, he gives this (copy/pasted the following code) example for the callback hell. However, there is no …

java future rx-java