Promises in D

Sebastiaan Koppe mail at skoppe.eu
Wed Apr 7 21:20:11 UTC 2021


On Wednesday, 7 April 2021 at 06:51:12 UTC, Vladimir Panteleev 
wrote:
> On Wednesday, 7 April 2021 at 06:41:36 UTC, Vladimir Panteleev 
> wrote:
>> Hi,
>>

Having been inspired by the Senders/Receivers C++ proposal 
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p0443r14.html I started an implementation here https://github.com/symmetryinvestments/concurrency [*]

I initially dismissed the proposal completely, and it took me at 
least a few months before I realized the beauty of it.

Now, I see them as fundamental building blocks in asynchronous 
code. They are cancelable, they avoid unnecessary allocations and 
synchronizations, and above all, they adhere to the principles of 
structured concurrency.

This is a good talk from eric niebler about them:

https://www.youtube.com/watch?v=h-ExnuD6jms

[*] it are still early days but it implements a fair bit of 
useful asynchronous algorithms.


More information about the Digitalmars-d mailing list