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

Adds Env.whereis_pid #456

Merged
merged 4 commits into from
May 30, 2022
Merged

Adds Env.whereis_pid #456

merged 4 commits into from
May 30, 2022

Conversation

Qqwy
Copy link
Contributor

@Qqwy Qqwy commented May 26, 2022

I had the requirement to use whereis_pid in my code.
However, until now, enif_whereis_pid was exposed by rustler_sys but not wrapped by rustler; there was no way to build a new LocalPid from the returned ErlNifPid (without transmuting).

This PR adds a safe wrapper around it.

  • Implementation
  • Documentation
  • Tests

Please let me know what you think about the signature and the implementation.

@evnu evnu requested a review from a team May 26, 2022 18:26
@evnu
Copy link
Member

evnu commented May 26, 2022

Thanks! Can you fix the formatting job? Apart from that, this looks great! :)

@Qqwy
Copy link
Contributor Author

Qqwy commented May 27, 2022

My bad; it is fixed now!

@evnu evnu merged commit a880bb3 into rusterlium:master May 30, 2022
@Qqwy
Copy link
Contributor Author

Qqwy commented May 30, 2022

Thank you! 😍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants