質問編集履歴

3

コードにコメントを追加

2019/02/12 06:02

投稿

XCUBE
XCUBE

スコア101

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

コードの改変

2019/02/12 06:02

投稿

XCUBE
XCUBE

スコア101

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

コードのインデント修正

2019/02/12 05:54

投稿

XCUBE
XCUBE

スコア101

test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,7 @@
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
33
  Thread.sleep(10000);
34
34