it is possible to override execute() function duri...
# announcements
d
it is possible to override execute() function during this declaration ?
f
You'd have to extend
ThreadPoolExecutor
(which is what
newSingleThreadExecutor
is creating) with your custom execute function
Scratch that, what Jake proposed below is better
why do you need to do that though?
d
@fred.deschenes I need it, because I would like to implement an waitAll() function that will wait if there is any executor running until all of them are terminated.
(without shutdown the threadpool)