I am trying to find a way to utilize ExecutorService.submit(Runnable r, T result) method , but cannot find/Imagine any. Can anyone explain how this method is best utilised with a code example.
Thanks in Advance.
I am trying to find a way to utilize ExecutorService.submit(Runnable r, T result) method , but cannot find/Imagine any. Can anyone explain how this method is best utilised with a code example.
Thanks in Advance.
You are perhaps wondering what the point of this method is? If so, you're not the only one :)
And if you are wondering am I missing something here? ... you're probably not. I've never encountered a use case for that method or, at least, a use case which was compelling and could not be achieved in any other way.