Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Code Quality: Removed extra code for async ops in Program class #17100

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

Merged
yaira2 merged 3 commits into files-community:main from 0x5bfa:5bfa/CQ-RunAsSync
Sep 3, 2025

Conversation

Copy link
Member

@0x5bfa 0x5bfa commented May 5, 2025

Resolved / Related Issues

Steps used to test these changes

  1. Open Files app
  2. Enable the setting to run Files in the background
  3. Start debebugging Files
  4. Close the window
  5. Launch Files from Start Menu

Copy link
Member Author

0x5bfa commented May 5, 2025
edited
Loading

Requesting your review @dongle-the-gadget @hez2010

@0x5bfa 0x5bfa force-pushed the 5bfa/CQ-RunAsSync branch 2 times, most recently from fc48386 to eca313e Compare May 14, 2025 16:05
Copy link
Member Author

0x5bfa commented May 26, 2025

Ready

Copy link
Contributor

I think it's better to do something like

public Task Something(Task task)
{
 async Task Call()
 {
 await task;
 SetEvent();
 }
}

@yaira2 yaira2 force-pushed the main branch 2 times, most recently from 42c8207 to 4c7493f Compare July 6, 2025 15:16
Copy link
Member

yaira2 commented Jul 6, 2025

@0x5bfa fyi

Copy link
Member Author

0x5bfa commented Jul 7, 2025

@ahmed605 What is your opinion too? I can't be sure the current code and the above code is really non blocking.

Copy link
Member

yaira2 commented Aug 11, 2025

What's the state of this PR?

Copy link
Member Author

0x5bfa commented Aug 19, 2025

Committed the requested change. Itested the change in RedirectActivationTo on my local but didn't test the one in OpenFileFromTile as I don't have Windows 10 rn.

PTAL. CC: @ahmed605

Copy link
Contributor

LGTM

0x5bfa reacted with heart emoji

@0x5bfa 0x5bfa changed the title (削除) Code Quality: Introduced a wrapper for non-blocking await on a sync method (削除ここまで) (追記) Code Quality: Removed extra code for async ops in Program class (追記ここまで) Aug 22, 2025
@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Sep 3, 2025
@yaira2 yaira2 merged commit bb7a0db into files-community:main Sep 3, 2025
6 checks passed
@0x5bfa 0x5bfa deleted the 5bfa/CQ-RunAsSync branch September 3, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@hez2010 hez2010 Awaiting requested review from hez2010

@dongle-the-gadget dongle-the-gadget Awaiting requested review from dongle-the-gadget

Assignees
No one assigned
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /