MCPcopy Create free account
hub / github.com/FongMi/TV / stop

Method stop

app/src/mobile/java/com/fongmi/android/tv/utils/ScanTask.java:36–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 public void stop() {
37 listener = null;
38 OkHttp.cancel(client, "scan");
39 future.forEach(f -> f.cancel(true));
40 future.clear();
41 }
42
43 private void run(List<String> urls) {
44 for (String url : urls) future.add(Task.submitLarge(() -> findDevice(url)));

Callers

nothing calls this directly

Calls 3

cancelMethod · 0.95
cancelMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected