Table of Contents

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

process Process

The process to wait for.

cancellationToken CancellationToken

Optional token to cancel the wait.

Returns

Task

A Task that completes when the process exits.