June 09, 2018 How to task pool in vibe.d? | ||||
---|---|---|---|---|
| ||||
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. |
June 10, 2018 Re: How to task pool in vibe.d? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Computermatronic | 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 |
Copyright © 1999-2021 by the D Language Foundation