hashed-wheel-timer icon indicating copy to clipboard operation
hashed-wheel-timer copied to clipboard

add pluggable CallableFactory

Open 0xg0nz0 opened this issue 7 years ago • 0 comments

constantlyNull() should continue to be the default, but it should be possible to plug in a Function<Callable, Runnable> if the developer wants to provide a custom wrapper. This is in part for performance reasons: if you schedule many Runnable tasks you will generate many short-lived Callable objects.

0xg0nz0 avatar Aug 19 '17 20:08 0xg0nz0