Skip to content

gpui: Cancel foreground tasks when the app is dropped - #45768

Merged
mikayla-maki merged 10 commits into
mainfrom
remove-async-result
Jan 5, 2026
Merged

gpui: Cancel foreground tasks when the app is dropped#45768
mikayla-maki merged 10 commits into
mainfrom
remove-async-result

Conversation

@mikayla-maki

@mikayla-maki mikayla-maki commented Dec 28, 2025

Copy link
Copy Markdown
Member

This is in preparation for removing Result<T> from the AsyncApp methods

Refactor machine goes brrrrrr

Plan and tracker for this PR: https://gist.github.com/mikayla-maki/7dfc0d4907e76de119b5712e24665f02

This PR should be safe to merge, as I cannot observe any changes in behavior from adding this to our application.

Release Notes:

  • N/A

…S-first approach

- Remove AppContext::Result associated type entirely (all contexts return T directly)
- Remove Flatten trait (no longer needed without Result<Result<T>>)
- Restructure phases: macOS first, then other platforms, then API changes
- Split codebase migration (phases 3-5) to separate brief
- Add async-app-result-removal-migration.md for future ~500+ callsite updates
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Dec 28, 2025
@mikayla-maki mikayla-maki changed the title Remove Result from AsyncApp gpui: Cancel foreground tasks when the app is dropped Dec 29, 2025
@mikayla-maki
mikayla-maki merged commit e8fbd5b into main Jan 5, 2026
23 checks passed
@mikayla-maki
mikayla-maki deleted the remove-async-result branch January 5, 2026 07:00
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
This is in preparation for removing `Result<T>` from the `AsyncApp`
methods

Refactor machine goes brrrrrr

Plan and tracker for this PR:
https://gist.github.com/mikayla-maki/7dfc0d4907e76de119b5712e24665f02

This PR should be safe to merge, as I cannot observe any changes in
behavior from adding this to our application.

Release Notes:

- N/A
mikayla-maki added a commit that referenced this pull request Jan 7, 2026
rtfeldman pushed a commit that referenced this pull request Jan 8, 2026
rtfeldman pushed a commit that referenced this pull request Jan 9, 2026
samuel-jimenez pushed a commit to samuel-jimenez/GramEditor that referenced this pull request Apr 2, 2026
jasonsmithio pushed a commit to paddleboarddev/paddleboard that referenced this pull request May 31, 2026
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
…#45768)

This is in preparation for removing `Result<T>` from the `AsyncApp`
methods

Refactor machine goes brrrrrr

Plan and tracker for this PR:
https://gist.github.com/mikayla-maki/7dfc0d4907e76de119b5712e24665f02

This PR should be safe to merge, as I cannot observe any changes in
behavior from adding this to our application.

Release Notes:

- N/A
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…#45768)

This is in preparation for removing `Result<T>` from the `AsyncApp`
methods

Refactor machine goes brrrrrr

Plan and tracker for this PR:
https://gist.github.com/mikayla-maki/7dfc0d4907e76de119b5712e24665f02

This PR should be safe to merge, as I cannot observe any changes in
behavior from adding this to our application.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant