Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it Possible to Add Async Overloads of Jobs Creation's Methods ? #838

Open
anasmohad opened this issue Mar 17, 2017 · 1 comment
Open

Comments

@anasmohad
Copy link

anasmohad commented Mar 17, 2017

As I understood, "The control is returned to a caller just after Hangfire serializes the given information and saves it to the storage."

I suggest to support the async/await pattern (i.e. no blocking of threads) by overloading the jobs creation's methods, example:

await BackgroundJob.EnqueueAsync(() => SomeClass.DoWork());

I know such feature may requires to re-engineer the Hangfire but I have to ask if is it possible to see this methods soon ?

@anasmohad
Copy link
Author

anasmohad commented Mar 17, 2017

#827 also asks for something near to what I need (support async/await for the authorization filters), I am asking to support async/await over job creation methods

#401 exactly what I need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant