agentscope.rpc.rpc_async module

Async related modules.

class AsyncResult(host: str, port: int, task_id: int | None = None, stub: ~concurrent.futures._base.Future | None = None, retry: ~agentscope.rpc.retry_strategy.RetryBase = <agentscope.rpc.retry_strategy.RetryFixedTimes object>)[源代码]

基类:object

Use this class to get the the async result from rpc server.

result() Any[源代码]

Get the result.

update_value() None[源代码]

Update the value. For compatibility with old version.