You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are building a gRPC server using the gRPC AsyncIO API and we need to integrate Olympe for controlling a Parrot Drone from the gRPC services. Since it is strongly recommended not to perform blocking operations inside AsyncIO event loop, we need to control the drone through non-blocking operations in order to allow the event loop to execute any other coroutines that may be waiting to execute.
Does Olympe provide fully non-blocking operations?
The text was updated successfully, but these errors were encountered:
Olympe expectation objects are awaitable objects in an olympe.concurrent.Loop event loop (not asyncio). To use olympe expectation objects in an asyncio event loop you'd need to wrap them with an asyncio.Future (example: expectation.add_done_callback(lambda e: loop.call_soon_threadsafe(lambda: fut.set_result(e.success()))) with 'loop' an asyncio loop and 'fut' a Future associated with this loop.).
We are building a gRPC server using the gRPC AsyncIO API and we need to integrate Olympe for controlling a Parrot Drone from the gRPC services. Since it is strongly recommended not to perform blocking operations inside AsyncIO event loop, we need to control the drone through non-blocking operations in order to allow the event loop to execute any other coroutines that may be waiting to execute.
Does Olympe provide fully non-blocking operations?
The text was updated successfully, but these errors were encountered: