AsyncScoringResult

class ctranslate2.AsyncScoringResult

Asynchronous wrapper around a result object.

Inherits from: pybind11_builtins.pybind11_object

Methods:

done() bool

Returns True if the result is available.

result() ScoringResult

Blocks until the result is available and returns it.

If an exception was raised when computing the result, this method raises the exception.