MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / canAbort

Method canAbort

launcher/net/NetJob.cpp:68–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68auto NetJob::canAbort() const -> bool
69{
70 bool canFullyAbort = true;
71
72 // can abort the downloads on the queue?
73 for (auto part : m_queue)
74 canFullyAbort &= part->canAbort();
75
76 // can abort the active downloads?
77 for (auto part : m_doing)
78 canFullyAbort &= part->canAbort();
79
80 return canFullyAbort;
81}
82
83auto NetJob::abort() -> bool
84{

Callers 1

abortMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected