4 ms·
What's wrong with TaskCompletionSource? I use it constantly. It's great for translating other async styles (like passing a callback as the last argument) into t
by Strilanc 13y ago
What's wrong with TaskCompletionSource? I use it constantly. It's great for translating other async styles (like passing a callback as the last argument) into tasks.
How would you implement Observable.LastAsync, without using something equivalent to TaskCompletionSource along the way?
- danabramov 13y agoI think your parent is arguing that, despite TaskCompletionSource exists, some people still don't use it much and resort to callbacks (presumably because they have not learned about it). As in “adding TaskCompletionSource to the framework didn't help some folks adjusting to Task style, and they keep using callbacks”.
- Strilanc 13y agoAh, that makes sense.