Skip to content

WaitForExitAsync: Handle timeout exception when timeout parameter set#505

Closed
rudraptpsingh wants to merge 0 commit into
microsoft:mainfrom
rudraptpsingh:main
Closed

WaitForExitAsync: Handle timeout exception when timeout parameter set#505
rudraptpsingh wants to merge 0 commit into
microsoft:mainfrom
rudraptpsingh:main

Conversation

@rudraptpsingh

Copy link
Copy Markdown
Contributor

No description provided.

{
// Expected whenever the CancellationToken receives a cancellation request.
}
catch (TimeoutException) when (timeout != null)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should NOT be swallowed here. There are upstream cases where the caller of this logic needs to know if the process did not actually complete within the timeout allotted. TimeoutException should be handled in the calling locations, not the core method.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants