HangfireIO / HangfireIO/Hangfire
Async support for storage API
Open
a: core
t: feature-request
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
Modern data access libraries are migrating to async methods in their API. For example, updated MongoDB driver [rewritten](http://mongodb.github.io/mongo-csharp-driver/2.0/what_is_new/) with async support.
On the other hand, HangFire have synchronous API for internal objects like `IStorageConnection`, `IFetchedJob`, `IMonitoringApi`, `IWriteOnlyTransaction` and so on.
It forces to use workarounds like AsyncHelper to build custom storage for HangFire.
So my suggestion is to update API in async way (e.g. return `Task` instead of `TResult`).
Contributor guide
Assessment
This issue has not been assessed yet.