Add overload for GetAllDisplaysAsync() with timout parameter

This commit is contained in:
softworkz
2026-02-25 03:45:35 +01:00
committed by softworkz
parent 77ca79acc9
commit 842e8700ef

View File

@@ -124,6 +124,15 @@ namespace ElectronNET.API
/// <returns>An array of displays that are currently available.</returns>
public Task<Display[]> GetAllDisplaysAsync() => this.InvokeAsync<Display[]>();
/// <summary>
/// An array of displays that are currently available.
/// </summary>
/// <param name="invocationTimeout">The invocation timeout.</param>
/// <returns>
/// An array of displays that are currently available.
/// </returns>
public Task<Display[]> GetAllDisplaysAsync(TimeSpan invocationTimeout) => this.InvokeAsyncWithTimeout<Display[]>(invocationTimeout);
/// <summary>
/// The display nearest the specified point.
/// </summary>