-
Notifications
You must be signed in to change notification settings - Fork 167
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
Generated functions crash in processes #135
Comments
I am trying to understand what is the issue that bothers you here. Do you simply want us to rename The warning you got warned you that "Some garbage has been left in the process registry" which means that you cannot expect that this works in some other process with a different process registry in general. Anyway, is there some concrete action that you want us to do? |
What bothers me is that for the function
the property
fails with
but if you wrap the generated function with
then the property
works
I would expect the generated functions work in other processes without any additional tricks. |
I was testing a parallel map implementation and immediately found that generated functions crash
when called in processes different from where they were generated. I understand PropEr sets up
some state and even calls it `global' as proper_gen:pick/1 message says. The problem is the state is obviously NOT global as the functions don't work.
My quick fix was a function like:
Wrapping and calling again does the trick.
The text was updated successfully, but these errors were encountered: