Bnaya.CSharp.AsyncExtensions 1.0.25

Useful extensions contribution by Bnaya Eshet
Blog: http://blogs.microsoft.co.il/bnaya/

Source Code:
https://github.com/bnayae/Bnaya.CSharp.AsyncExtensions


# NuGet
this library available on NuGet via
Install-Package Bnaya.CSharp.AsyncExtensions

## This library have the following godies:
* Exception Handlinfg
 * ThrowAll (produce AggregateException when waiting on Task.WhenAll)
 * Format (format async exception into friendlier callstack represantation)
* Timeout (will apply timeout semantic for any Task)
 * WithTimeout (will throw on timeout)
 * IsTimeoutAsync (will return indication without throwing, ideal for SLA checks [prctice: check and produce warning])
* Cancellation
 * CancelSafe (will run the CancellationTokenSource.Cancel within try catch and prevent unexpected side effect which can happen when cancellation token registration throw)
* Frendly async locking facilities (which can replace the clasical lock statement).
 * Extensions
   * TryAcquireAsync
   * AcquireAsync
 * Instance-able
   * AsyncLock
* WhenN: use to complete task aftern n task succeed

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Install-Package Bnaya.CSharp.AsyncExtensions -Version 1.0.25
dotnet add package Bnaya.CSharp.AsyncExtensions --version 1.0.25
<PackageReference Include="Bnaya.CSharp.AsyncExtensions" Version="1.0.25" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Bnaya.CSharp.AsyncExtensions --version 1.0.25
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Release 1.0.25 (Breaking Changes)
TaskPlus.WhenAllMix: can await mix generic value-tasks

Release 1.0.24 (Breaking Changes)
TaskPlus.WhenAllMix: can await mix generic tasks

Release 1.0.23 (Breaking Changes)
When / WhenN signature changed (remove the all task Action in flavor of returning all tasks in the result)

Release 1.0.22
Refactor exception.Format

Release 1.0.21
BUG FIX
- Async Lock
Features
-When / WhenN

Release 1.0.19
Features
- Exception.FormatWithLineNumber

Release 1.0.18 (Has Breaking Changes):
Feature:
- WhenN: use to complete task after n task succeed
BUG FIX:
- Breaking changes: IsTimeoutAsync_Test (on versions below 1.0.17)
 Previous versions was returning false when timeout detected and true when timeout not detected
- AcquireAsync and TryAcquireAsync (object disposal race)

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.25 270 8/17/2018
1.0.23 360 5/2/2018
1.0.22 234 5/2/2018
1.0.21 224 4/17/2018
1.0.20 263 4/16/2018
1.0.19 273 4/15/2018
1.0.18 344 4/14/2018
1.0.15 295 12/21/2017
1.0.14 280 12/21/2017
1.0.13 310 11/23/2017
1.0.11 322 11/21/2017
1.0.7 304 11/16/2017