質問編集履歴
3
コードにコメントを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,13 +13,13 @@
|
|
13
13
|
scene.setCursor(Cursor.WAIT); // マウスカーソル変更
|
14
14
|
|
15
15
|
ExecutorService service = Executors.newSingleThreadExecutor();
|
16
|
-
Future<Boolean> future = service.submit( () -> { // 更新処理スレッド
|
16
|
+
Future<Boolean> future = service.submit( () -> { // 更新処理スレッド
|
17
|
-
Thread.sleep(10000);
|
17
|
+
Thread.sleep(10000); // ダミー処理
|
18
18
|
return true;
|
19
19
|
}
|
20
20
|
);
|
21
21
|
|
22
|
-
Boolean thResult = future.get();
|
22
|
+
Boolean thResult = future.get(); // スレッドの終了を待つ
|
23
23
|
scene.setCursor(bkCur); // マウスカーソルを戻す
|
24
24
|
|
25
25
|
```
|
2
コードの改変
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,8 +19,8 @@
|
|
19
19
|
}
|
20
20
|
);
|
21
21
|
|
22
|
+
Boolean thResult = future.get();
|
22
23
|
scene.setCursor(bkCur); // マウスカーソルを戻す
|
23
|
-
Boolean thResult = future.get();
|
24
24
|
|
25
25
|
```
|
26
26
|
|
1
コードのインデント修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
scene.setCursor(Cursor.WAIT); // マウスカーソル変更
|
14
14
|
|
15
15
|
ExecutorService service = Executors.newSingleThreadExecutor();
|
16
|
-
|
16
|
+
Future<Boolean> future = service.submit( () -> { // 更新処理スレッドのダミー
|
17
17
|
Thread.sleep(10000);
|
18
18
|
return true;
|
19
19
|
}
|