Fork me on GitHub
#core-async
<
2021-03-28
>
souenzzo17:03:13

ExecutorService has API's like getPoolSize and getTaskCount There is how I get pool-size task-count inside pipeline-async or equivalent?

hiredman17:03:14

You should be very careful if you are using pipeline-async, it is very easy to make mistakes with

souenzzo18:03:53

If I need things like task-count, should I continue with ExecutorService?

hiredman20:03:17

If you are using pipeline-async then you pretty much need an executor somewhere

hiredman20:03:14

pipeline-async is basically the pipeline machinery but "run the tasks somewhere else", and that somewhere else is usually going to be some kind of work queue kind of thing

hiredman20:03:44

An executor, or some kind nio worker thing, or whatever