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

Method shutdown

src/main/java/field/app/ThreadSync.java:331–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329 }
330
331 private void shutdown() throws InterruptedException {
332 for (Fiber f : live) {
333 f.stopped = true;
334 f.runner.cancel(true);
335 serviceAndCull();
336 }
337
338 live.clear();
339 models.remove(Thread.currentThread());
340 }
341
342 public Fiber run(String tag, Callable r, Consumer<Throwable> h) throws InterruptedException {
343 return run(tag, NULL(), discard(), r, h);

Callers 1

runMethod · 0.95

Calls 3

serviceAndCullMethod · 0.95
clearMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected