If I have a FutureTask<String> f, can I get the Callable<String> c object that was used in his constructor?
Something like:
Callable<String> c = f.getCallable();
If I have a FutureTask<String> f, can I get the Callable<String> c object that was used in his constructor?
Something like:
Callable<String> c = f.getCallable();
Copyright © 2021 Jogjafile Inc.
Not with
FutureTaskitself, but you could extend it for your own needs: