Skip to content

Commit f9b1ad9

Browse files
committed
spawning another thread
1 parent c02fd3c commit f9b1ad9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎koans/src/java8/AboutLambdas.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public String toString() {
3131
@Koan
3232
public void verySimpleLambda() throws InterruptedException {
3333
Runnable r8 = () -> str = "from other thread";
34-
r8.run();
34+
Thread tLambda = new Thread(r8, "Lambda Thread");
35+
tLambda.start();
3536
Thread.sleep(8);
3637
assertEquals(str, __);
3738
}

0 commit comments

Comments
 (0)