Skip to content

Commit 59e4457

Browse files
committed
Add overload for GetAllDisplaysAsync() with timout parameter
1 parent 77ca79a commit 59e4457

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ElectronNET.API/API/Screen.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ internal static Screen Instance
124124
/// <returns>An array of displays that are currently available.</returns>
125125
public Task<Display[]> GetAllDisplaysAsync() => this.InvokeAsync<Display[]>();
126126

127+
/// <summary>
128+
/// An array of displays that are currently available.
129+
/// </summary>
130+
/// <param name="invocationTimeout">The invocation timeout.</param>
131+
/// <returns>
132+
/// An array of displays that are currently available.
133+
/// </returns>
134+
public Task<Display[]> GetAllDisplaysAsync(TimeSpan invocationTimeout) => this.InvokeAsyncWithTimeout<Display[]>(invocationTimeout);
135+
127136
/// <summary>
128137
/// The display nearest the specified point.
129138
/// </summary>

0 commit comments

Comments
 (0)