Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Able to check Tokio Runtime is alive inside is_closed. #1569

Closed
wants to merge 1 commit into from

Conversation

evshary
Copy link
Contributor

@evshary evshary commented Oct 29, 2024

The draft PR to deal with the issue
ZettaScaleLabs/rmw_zenoh#26

Here is what we do:

  1. Provide a clear panic log to tell developers not to use Zenoh API inside atexit.
  2. Check Tokio Runtime availability inside is_closed API. This can help developers avoid calling Zenoh API in the wrong place.

Copy link

PR missing one of the required labels: {'internal', 'dependencies', 'documentation', 'new feature', 'breaking-change', 'bug', 'enhancement'}

@evshary evshary added the enhancement Existing things could work better label Oct 29, 2024
@evshary
Copy link
Contributor Author

evshary commented Oct 31, 2024

It would be better to check it on rmw_zenoh. Let's replace it with ZettaScaleLabs/rmw_zenoh#37

@evshary evshary closed this Oct 31, 2024
@evshary evshary deleted the check_session_alive branch October 31, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Existing things could work better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant