• Post Reply Bookmark Topic Watch Topic
  • New Topic

"asyncMethod.get() will result in an ExecutionException"

 
Himai Minh
Ranch Hand
Posts: 1400
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On Frit's notes p. 17 , session 2.1.8,
"If the asynchronous method has return type Future<v> and an exception is thrown during the execution of the method (eg. asyncMethod is the asynchronous annotated method)
asyncMethod.get() will result in an ExecutionException..."

I think the last phrase should be "Future<v>. get() will result in an ExecutionException".
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2781
174
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right!

Thanks, fixed and uploaded the new version.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!