From 59e4457b73771ecc8afcf06786bf466a145a6d70 Mon Sep 17 00:00:00 2001 From: softworkz Date: Wed, 25 Feb 2026 03:45:35 +0100 Subject: [PATCH] Add overload for GetAllDisplaysAsync() with timout parameter --- src/ElectronNET.API/API/Screen.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ElectronNET.API/API/Screen.cs b/src/ElectronNET.API/API/Screen.cs index 5c81e583..613531e4 100644 --- a/src/ElectronNET.API/API/Screen.cs +++ b/src/ElectronNET.API/API/Screen.cs @@ -124,6 +124,15 @@ internal static Screen Instance /// An array of displays that are currently available. public Task GetAllDisplaysAsync() => this.InvokeAsync(); + /// + /// An array of displays that are currently available. + /// + /// The invocation timeout. + /// + /// An array of displays that are currently available. + /// + public Task GetAllDisplaysAsync(TimeSpan invocationTimeout) => this.InvokeAsyncWithTimeout(invocationTimeout); + /// /// The display nearest the specified point. ///