MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

concurrent/OnePizza.java:8–15  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

6
7public class OnePizza {
8 public static void main(String[] args) {
9 Pizza za = new Pizza(0);
10 System.out.println(
11 Timer.duration(() -> {
12 while(!za.complete())
13 za.next();
14 }));
15 }
16}
17/* Output:
18Pizza 0: ROLLED

Callers

nothing calls this directly

Calls 3

durationMethod · 0.95
completeMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected