https://github.com/i-e-b/sync
A reasonable and reliable way to run C# async tasks synchronously, without risking deadlocks.
https://github.com/i-e-b/sync
async production-ready sync task working
Last synced: 12 months ago
JSON representation
A reasonable and reliable way to run C# async tasks synchronously, without risking deadlocks.
- Host: GitHub
- URL: https://github.com/i-e-b/sync
- Owner: i-e-b
- License: bsd-3-clause
- Created: 2019-01-24T14:06:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-25T08:09:55.000Z (about 4 years ago)
- Last Synced: 2025-02-28T12:38:06.222Z (over 1 year ago)
- Topics: async, production-ready, sync, task, working
- Language: C#
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sync
A reasonable and reliable way to run C# async tasks synchronously, without risking deadlocks.
## Use
```csharp
// Async method that returns 'Task':
Sync.Run(() => MyThing.DoSomethingAsync(...));
// Async method that returns 'Task':
var result = Sync.Run(() => MyThing.ReadSomethingAsync(...));
```