AsyncTranslationResult
- class ctranslate2.AsyncTranslationResult
Asynchronous wrapper around a result object.
Inherits from:
pybind11_builtins.pybind11_object
Methods:
- done() bool
Returns
True
if the result is available.
- result() TranslationResult
Blocks until the result is available and returns it.
If an exception was raised when computing the result, this method raises the exception.