eclipse-iceoryx / iceoryx-rs

Rust wrapper for Eclipse iceoryx™ - true zero-copy inter-process-communication
Apache License 2.0
89 stars 16 forks source link

Fallible version of `Runtime::init` function #62

Open phil-opp opened 2 years ago

phil-opp commented 2 years ago

Right now the only way to initialize a Runtime is through the init function. This function blocks until it establishes a connection to the RouDi daemon, or terminates the whole process on a timeout. This is not desired for robust applications, so it would be good to also have a try_init(app_name) -> Result function that just returns an error in this case. Ideally, the wait timeout would also be configurable.

elBoberido commented 2 years ago

@phil-opp I did not get notifications for the issue. It seems I have to adjust the my settings.

I think in order to make this work some changes in iceoryx itself are required. I think something like this would be valuable.