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