質問編集履歴
3
コードにコメントを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,9 +28,9 @@
|
|
28
28
|
|
29
29
|
ExecutorService service = Executors.newSingleThreadExecutor();
|
30
30
|
|
31
|
-
Future<Boolean> future = service.submit( () -> { // 更新処理スレッド
|
31
|
+
Future<Boolean> future = service.submit( () -> { // 更新処理スレッド
|
32
32
|
|
33
|
-
Thread.sleep(10000);
|
33
|
+
Thread.sleep(10000); // ダミー処理
|
34
34
|
|
35
35
|
return true;
|
36
36
|
|
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
-
Boolean thResult = future.get();
|
43
|
+
Boolean thResult = future.get(); // スレッドの終了を待つ
|
44
44
|
|
45
45
|
scene.setCursor(bkCur); // マウスカーソルを戻す
|
46
46
|
|
2
コードの改変
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,9 +40,9 @@
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
+
Boolean thResult = future.get();
|
44
|
+
|
43
45
|
scene.setCursor(bkCur); // マウスカーソルを戻す
|
44
|
-
|
45
|
-
Boolean thResult = future.get();
|
46
46
|
|
47
47
|
|
48
48
|
|
1
コードのインデント修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
ExecutorService service = Executors.newSingleThreadExecutor();
|
30
30
|
|
31
|
-
|
31
|
+
Future<Boolean> future = service.submit( () -> { // 更新処理スレッドのダミー
|
32
32
|
|
33
33
|
Thread.sleep(10000);
|
34
34
|
|