Class ProcessExtensions
- Namespace
- FishMMO.Shared
- Assembly
- FishMMO-SharedUtility.dll
Extension methods for System.Diagnostics.Process, providing asynchronous integration.
public static class ProcessExtensions
- Inheritance
-
ProcessExtensions
- Inherited Members
Methods
WaitForExitAsync(Process, CancellationToken)
Asynchronously waits for the process to exit. Includes a safety check for processes that have already exited and supports cancellation.
public static Task WaitForExitAsync(this Process process, CancellationToken cancellationToken = default)
Parameters
processProcessThe process to wait for.
cancellationTokenCancellationTokenOptional token to cancel the wait.
Returns
- Task
A Task that completes when the process exits.