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

Method AsyncResult

python/cpp/utils.h:65–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 class AsyncResult {
64 public:
65 AsyncResult(std::future<T> future)
66 : _future(std::move(future))
67 {
68 }
69
70 const T& result() {
71 if (!_done) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected