-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Drop Concurrent::Future and top-level methods delay, future, lazy #9093
Conversation
I don't quite get this to be honest.
|
@veelenga @benoist what do you think if I submit a @jhass the issues regarding structured concurrency are the lack of scope for the spawned created along the way and I believe exception handling opinions. I have used these constructs and I accept them as they are; moving them to crystal-community can be a nice sweet spot. |
@bcardiff for sure. The name is looking good. Let me know if you need any extra permissions or if I can help with something. |
https://github.com/crystal-community/future.cr has been published, I changed the Concurrent::Future to Future::Compute to match the naming. The top-level methods are the same. The migration path is to
|
Seems like there should have been a depreciation step before removing the code. If some upgrades Crystal now there code will break. Maybe we can add an exception pointing to the new repo. |
IMO the deprecation is not needed here because the changes to make things work in nightlies can be done in current release. |
…ystal-lang#9093) * Drop Concurrent::Future and top-level methods delay, future, lazy * Fix Windows CI
The motivation behind this was that the original merge was premature.
And there might be more interest to develop a more robust approach (ref: #6468).
Since there is no migration path from here, the methods can be removed directly.
If it is a stopper for someone, the
future.cr
file is self contained and can be included in the app.Since the consensus was to remove these top-level methods I am assuming that the Concurrent module is also expected to be removed.