Info
Version: | 1.0.68 |
Author(s): | Bnaya.CSharp.AsyncExtensions |
Last Update: | Monday, June 19, 2023 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://medium.com/@bnayae |
NuGet Url: | https://www.nuget.org/packages/Bnaya.CSharp.AsyncExtensions |
Install
Install-Package Bnaya.CSharp.AsyncExtensions
dotnet add package Bnaya.CSharp.AsyncExtensions
paket add Bnaya.CSharp.AsyncExtensions
Bnaya.CSharp.AsyncExtensions Download (Unzip the "nupkg" after downloading)
Dependencies
- System.Threading.Tasks.Extensions(>= 4.5.4)
Tags
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 goodies:
* Exception Handling
* ThrowAll (produce AggregateException when waiting on Task.WhenAll)
* Format (format async exception into friendlier call-stack representation)
* Timeout (will apply timeout semantic for any Task)
* WithTimeout (will throw on timeout)
* IsTimeoutAsync (will return indication without throwing, ideal for SLA checks [practice: 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)
* Friendly async locking facilities (which can replace the classical lock statement).
* Extensions
* TryAcquireAsync
* AcquireAsync
* Instance-able
* AsyncLock
* WhenN: use to complete task after 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.