MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / empty

Method empty

src/JobQueue.cc:61–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61bool JobQueue::empty() const {
62 // TODO (Tom Tang): implement using `get_running_loop` and getting job count on loop???
63 return true; // see https://hg.mozilla.org/releases/mozilla-esr128/file/tip/js/src/builtin/Promise.cpp#l6946
64}
65
66bool JobQueue::isDrainingStopped() const {
67 // TODO (Tom Tang): implement this by detecting if the Python event-loop is still running

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected