eclipse-iceoryx / iceoryx2

Eclipse iceoryx2™ - true zero-copy inter-process-communication in pure Rust
https://iceoryx.io
Apache License 2.0
460 stars 23 forks source link

Example how to build async API with iceoryx2 #246

Open elfenpiff opened 2 weeks ago

elfenpiff commented 2 weeks ago

(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

elBoberido commented 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.