Sync 1.0.1

A reasonable and reliable way to terminate C# async tasks

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

Sync

A reasonable and reliable way to run C# async tasks synchronously, without risking deadlocks.

Use

// Async method that returns 'Task':
Sync.Run(() => MyThing.DoSomethingAsync(...));

// Async method that returns 'Task<T>':
var result = Sync.Run(() => MyThing.ReadSomethingAsync(...));

Sync

A reasonable and reliable way to run C# async tasks synchronously, without risking deadlocks.

Use

// Async method that returns 'Task':
Sync.Run(() => MyThing.DoSomethingAsync(...));

// Async method that returns 'Task<T>':
var result = Sync.Run(() => MyThing.ReadSomethingAsync(...));

Release Notes

Adding support for .Net 4.5

Dependencies

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 1,005 4/16/2019
1.0.0 676 1/24/2019