timcassell / ProtoPromise

Robust and efficient library for management of asynchronous operations in C#/.Net.
MIT License
145 stars 13 forks source link

Add `Promise.Finally` overloads that accept `Func<Promise>` delegates #319

Closed timcassell closed 8 months ago

timcassell commented 8 months ago

With the addition of AsyncEnumerable and new Progress (and old CancelationRegistration), being able to call DisposeAsync properly in a .Finally call becomes more important, especially for older runtimes/lang versions where await using cannot be used.