MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / wait

Method wait

src/main/java/field/app/ThreadSync.java:189–195  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

187 }
188
189 static public Object wait(int n) throws InterruptedException, Stop {
190 Object q = null;
191 for (int i = 0; i < n; i++) {
192 q = ThreadSync.yield(null);
193 }
194 return q;
195 }
196
197 static public Object pause(Supplier<Object> during) throws InterruptedException, Stop {
198 if (fiber.get() == null) throw new IllegalArgumentException(" pause called from non-fiber thread");

Callers 4

replay.box.jsFile · 0.80
viewport.box.jsFile · 0.80
PipeClass · 0.80
enterMainLoopMethod · 0.80

Calls 1

yieldMethod · 0.95

Tested by

no test coverage detected