yr.object_ref.ObjectRef.as_future

yr.object_ref.ObjectRef.as_future#

ObjectRef.as_future() Future[source]#

Wrap ObjectRef with an asyncio.Future.

Note that the future cancellation will not cancel the corresponding task when the ObjectRef representing return object of a task.

Returns:

An asyncio.Future that wraps ObjectRef. Data type is asyncio.Future.