Skip to content

Commit

Permalink
spawning another thread
Browse files Browse the repository at this point in the history
  • Loading branch information
darsen committed Jan 26, 2015
1 parent c02fd3c commit f9b1ad9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion koans/src/java8/AboutLambdas.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public String toString() {
@Koan
public void verySimpleLambda() throws InterruptedException {
Runnable r8 = () -> str = "from other thread";
r8.run();
Thread tLambda = new Thread(r8, "Lambda Thread");
tLambda.start();
Thread.sleep(8);
assertEquals(str, __);
}
Expand Down

0 comments on commit f9b1ad9

Please sign in to comment.