Channels for tasks?
deadalnix
deadalnix at gmail.com
Fri Jul 19 00:42:23 PDT 2013
On Thursday, 18 July 2013 at 17:55:36 UTC, Sean Kelly wrote:
> On Jul 18, 2013, at 8:28 AM, Matt <MATTCA at sky.com> wrote:
>
>> Hi guys,
>> I know this will have probably been answered before, but does
>> D have a concept similar to Go's channels when it comes to
>> tasks?
>>
>> I believe (according to a few forum posts hinting at it) that
>> such a thing exists for threads, but not for the lightweight
>> tasks provided by std.parallelism. Are there any plans to add
>> such a feature to the library?
>
> Not as such. I'd like to make Fibers each have their own
> message queue in std.concurrency, but that means making TLS
> work at the fiber level, which is tricky.
>
Yes please yes.
Did I said yes yet ?
> I think there is value in the CSP model (ie. channels), but
> haven't done anything about it in terms of library work.
More information about the Digitalmars-d
mailing list