Creates an instance of ProcessTimeoutPolicy using the specified timeout threshold and an optional cancellation mode.
public static ProcessTimeoutPolicy FromTimeSpan(TimeSpan timeoutThreshold, ProcessExitBehaviour exitBehaviour = ProcessExitBehaviour.GracefulExit)
The maximum duration to wait before the process is considered timed out.
The method of cancellation to apply when the timeout threshold is reached. Defaults to GracefulExit.