MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / done

Method done

python/cpp/utils.h:87–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 }
86
87 bool done() {
88 constexpr std::chrono::seconds zero_sec(0);
89 return _done || _future.wait_for(zero_sec) == std::future_status::ready;
90 }
91
92 private:
93 std::future<T> _future;

Callers 3

_process_iterableFunction · 0.80

Calls

no outgoing calls