Open elfenpiff opened 2 weeks ago
Maybe I got it wrong but I think you mean an event based API. When someone talks about an async API in Rust they have something different in mind, especially to be composable with the await
call. This is currently not possible with the API we provide but it should be possible to provide such an API.
(Code) Example Of Cumbersome API
iceoryx2 itself does not offer an async API, but it is possible to build something with it that has an async API. Therefore, one can define a pub/sub service and combine it with an event service. An example shall demonstrate how to realize such an API.
Relates to #47
Is a possible solution sans-IO design: https://www.firezone.dev/blog/sans-io