Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
test_batch_translation_async
Function · 0.80
test_invalid_translation_options_async
Function · 0.80
_process_iterable
Function · 0.80
Calls
no outgoing calls
Tested by
2
test_batch_translation_async
Function · 0.64
test_invalid_translation_options_async
Function · 0.64