You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/01/25 06:17:03 UTC
[GitHub] [skywalking] wallezhang commented on issue #6251: Does toolkit can support wrapper an executor?
wallezhang commented on issue #6251:
URL: https://github.com/apache/skywalking/issues/6251#issuecomment-766572687
I don't want user wrap `Callable` or `Runnable` manually when invoke `submit()` function.
e.g. I have an executor
```
private final ExecutorService executor = ExecutorServiceWrapper
.of(new ThreadPoolExecutor(5, 10, 1L, TimeUnit.MINUTES,
new ArrayBlockingQueue<>(100),
new ThreadFactoryBuilder().setNameFormat("refresh-all-value-thread-%d").setDaemon(true).build());
```
And user can invoke `execute()` or `submit()` without wrap the runnable.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org