Skip to content

Commit

Permalink
[hotfix][runtime] Adds ComponentMainThread to thread name of Componen…
Browse files Browse the repository at this point in the history
…tMainThreadExecutorServiceAdapter
  • Loading branch information
XComp committed Aug 29, 2024
1 parent 2ca359a commit e207a45
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public static ComponentMainThreadExecutor forSingleThreadExecutor(
@Nonnull ScheduledExecutorService singleThreadExecutor) {
final Thread thread =
CompletableFuture.supplyAsync(Thread::currentThread, singleThreadExecutor).join();
thread.setName(String.format("ComponentMainThread-%s", thread.getName()));
return new ComponentMainThreadExecutorServiceAdapter(singleThreadExecutor, thread);
}

Expand Down

0 comments on commit e207a45

Please sign in to comment.