asyncx_ros2.ensure_ros_future

asyncx_ros2.ensure_ros_future(future)[source]

Wrap an object in a rclpy.task.Future.

Parameters

future (Any) – A rclpy.task.Future object, a concurrent.futures.Future object, or a asyncio.Future object.

Returns

A rclpy.task.Future object that wraps the given future

Return type

rclpy.task.Future