Use Background Thread For Async Saving

This commit is contained in:
Konloch 2024-10-02 06:40:42 -06:00
parent 17e128be28
commit 66b38222f8

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -43,8 +43,7 @@ public class SettingsSerializer
public static void saveSettingsAsync() public static void saveSettingsAsync()
{ {
Thread saveThread = new Thread(SettingsSerializer::saveSettings, "Save Settings"); BytecodeViewer.getTaskManager().doOnce(task -> saveSettings());
saveThread.start();
} }
public static synchronized void saveSettings() public static synchronized void saveSettings()