Re: How to task pool in vibe.d?

2018-06-09 Thread crimaniak via Digitalmars-d-learn

On Saturday, 9 June 2018 at 15:11:02 UTC, Computermatronic wrote:
I'd like to create a bunch of tasks in vibe.d, then wait for 
them all to complete.


Using std.concurrency and std.parallelism this is trivial.

I could just spawn a bunch of vibe.d tasks and then iteratively 
join them, but I would think vibe.d would provide some 
primitives for task-pooling.

  Yes. https://vibed.org/api/vibe.core.taskpool/TaskPool



How to task pool in vibe.d?

2018-06-09 Thread Computermatronic via Digitalmars-d-learn
I'd like to create a bunch of tasks in vibe.d, then wait for them 
all to complete.


Using std.concurrency and std.parallelism this is trivial.

I could just spawn a bunch of vibe.d tasks and then iteratively 
join them, but I would think vibe.d would provide some primitives 
for task-pooling.