Skip to content

Commit

Permalink
WIP: Edge Browser Scheduled Job timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
amartya4256 committed Jan 22, 2025
1 parent a0a0485 commit 04d2500
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,11 @@ boolean isWebView_13Available() {
void scheduleWebViewTask(Runnable action) {
lastWebViewTask = lastWebViewTask.thenRun(() -> {
action.run();
}).orTimeout(5, TimeUnit.SECONDS);
lastWebViewTask.whenComplete((result, exception) -> {
if (exception != null) {
exception.printStackTrace();
}
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ private int reportOpenedDescriptors() {
}

private Browser createBrowser(Shell s, int flags) {
long maximumBrowserCreationMilliseconds = 90_000;
long maximumBrowserCreationMilliseconds = 10_000;
long createStartTime = System.currentTimeMillis();
Browser b = new Browser(s, flags);
// Wait for asynchronous initialization via getting URL
Expand Down

0 comments on commit 04d2500

Please sign in to comment.