zenoh-flow icon indicating copy to clipboard operation
zenoh-flow copied to clipboard

[Enhancement] Should `async_std` be replaced with `tokio` ?

Open Hennzau opened this issue 11 months ago • 2 comments

Current behaviour and limitations

Since #261, Zenoh-Flow has been based on Zenoh 1.x. A major change in this version of Zenoh is that task management has shifted from async_std to tokio (https://github.com/eclipse-zenoh/zenoh/pull/1264).

Should Zenoh-Flow migrate entirely to tokio?

Proposed solution?

No response

Hennzau avatar Jan 07 '25 14:01 Hennzau

Hi @Hennzau!

In short, yes we should probably switch to Tokio.

The longer answer is that we had internal plans to use a patched version of async-std to provide additional functionalities. For instance, assigning a priority to a task. Unfortunately, due to external factors, these plans are now postponed and to have a more consistent software stack between the Zenoh and Zenoh-Flow projects, Tokio is the better default.

J-Loudet avatar Jan 13 '25 15:01 J-Loudet

Alright! Yes, I remember M. Angelo C mentioning this version of async_std.

I’ll update the code to use tokio!

Hennzau avatar Jan 13 '25 19:01 Hennzau