<PackageReference Include="Relativity.Server.Import.SDK" Version="24000.1.0" />

TaskExtensions

public static class TaskExtensions
Represents extension methods for common task operations.
public static Task WithTimeout(this Task source, TimeSpan timeout, string operation)

Awaits the task and will return if the timeout is exceeded.

public static Task<TResult> WithTimeout<TResult>(this Task<TResult> source, TimeSpan timeout, string operation)

Awaits the task and will return if the timeout is exceeded.