-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Requesting async support #8
Comments
Not going to happen, I'm afraid, for the following reasons:
|
As a counterpoint to this, my app does plenty of other things, such as reporting status, accepting connections and communicating with hosting infrastructure. Being able to perform asynchronous work greatly simplifies the mixing of all the different duties of my app. I can understand the limitation if it is due to the data access layer in .NET not supporting async (not saying that is the case, though) but there does not seem to be any grounds in principle to avoid async. |
From that perspective, I don't see the difference between
I have moved to using
The trouble is, it's not simply a matter of adding async support in addition to the current sync support. At the end of all of my code is the migration that the user wrote. So either I have to make migrations synchronous, or asynchronous. Either the user has to write a Therefore either SimpleMigrations is fully synchronous, or fully asynchronous. If it becomes fully asynchronous, then:
I don't think this compares to supporting your use-case, which can also be handled by adding a simple |
It would be desirable to use SM using async methods, e.g.
migrator.MigrateToAsync(long)
, as the current synchronous style is rather limiting in this day and age.The text was updated successfully, but these errors were encountered: