C# TaskCompletionSource or Promise alike Future?

I'm wondering if there is a C# TaskCompletionSource or Promise alike Future utility which provides an async event notification (carrying a single value: Result<T, E>) mechanism?

The closest I can find is async_channel::bounded(1); furthermore, futures-0.1 had something called "Promise", but obviously, this doesn't seem to exist anymore in futures-0.3?

Is using channel a recommended approach?

I don’t know C# and I won’t go ahead trying to learn about those APIs that you’ve mentioned. Regarding

that still exists under the name oneshot, i.e. channel in futures::channel::oneshot - Rust

1 Like

Awesome, this is exactly what I want! Thanks!