yr.object_ref.ObjectRef#
- class yr.object_ref.ObjectRef(object_id: str, task_id=None, need_incre=True, need_decre=True, exception=None, enable_tensor_transport=False)[source]#
Bases:
objectInitialize the ObjectRef.
Attributes
Methods
Initialize the ObjectRef.
Wrap ObjectRef with an asyncio.Future.
Cancel the obj future
Return
Trueif the obj future was cancelled or finished executing.Raise exception if exception is not none.
This function is used to retrieve an object.
Get future.
Whether future exception.
Register callback.
Set data.
Set exception.
Wait stateless function done.