dvas0004 / NerdNotes

A collection of notes: things I'd like to remember while reading technical articles, technical questions I couldn't answer, and so on.
12 stars 0 forks source link

Submitting tasks to Java's ExecutorService #80

Open dvas0004 opened 5 years ago

dvas0004 commented 5 years ago

sibmittingToExecutorService

Note that if we submit a lambda that does not return a value, the compiler assumes it impelents the Future interface, but if the lambda returns a value it assumes a Callable interface