File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/io/concurrency/chapter11/exam05 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public static void main(String[] args) {
10
10
CompletableFuture <Integer > asyncFuture = CompletableFuture .supplyAsync (() -> {
11
11
System .out .println ("thread1:" + Thread .currentThread ().getName ());
12
12
try {
13
- Thread .sleep (1000 );
13
+ Thread .sleep (500 );
14
14
} catch (InterruptedException e ) {
15
15
throw new RuntimeException (e );
16
16
}
@@ -35,7 +35,7 @@ static class MyService {
35
35
36
36
public int getData1 (){
37
37
try {
38
- Thread .sleep (1000 );
38
+ Thread .sleep (500 );
39
39
} catch (InterruptedException e ) {
40
40
throw new RuntimeException (e );
41
41
}
@@ -44,7 +44,7 @@ public int getData1(){
44
44
45
45
public int getData2 (){
46
46
try {
47
- Thread .sleep (1000 );
47
+ Thread .sleep (500 );
48
48
} catch (InterruptedException e ) {
49
49
throw new RuntimeException (e );
50
50
}
You can’t perform that action at this time.
0 commit comments