Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
1 answer
621 views

Why Future(Failure(new Exception)) returns Success instead of failure?

I was trying the following and thinking that I'll get a failure val failure = Future { Failure(new Exception) } but instead I got Future(Success(Failure(java.lang.Exception))) Can anyone answer why?
Muskan Gupta's user avatar
5 votes
1 answer
4k views

cancelling a future task in java [duplicate]

I want to cancel a task submitted to ExecutorService thus allowing the corresponding thread to pick a new task from the queue. Now this question have been answered many times on this forum.... like ...
gautam's user avatar
  • 197
2 votes
5 answers
2k views

Java: Logging FutureTask exceptions

I've got an application which regularly submits tasks to be executed in a dedicated thread. Those tasks are FutureTask<V> and the thread is no more than an infinite loop which executes the jobs ...
user683887's user avatar
  • 1,280
1 vote
1 answer
582 views

ExecutionException thrown but without a cause

I have a futures task that is doing some I/O operations over the socket to a server. When I use the get() method of the task to retrieve the result, I am getting ExecutionException, but with no cause ...
hari_sree's user avatar
  • 1,538
0 votes
2 answers
2k views

Future Task Async Calls hanging while exception occurs

I wrote many Async Future Task Calls one below another in my java program. Giving one sample below FutureTask<List<ConditionFact>> x = getConditionFacts(final Member member); FutureTask&...
juniorbansal's user avatar
  • 1,271