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

specs of gen_server2 #1

Open
kostis opened this issue May 26, 2011 · 1 comment
Open

specs of gen_server2 #1

kostis opened this issue May 26, 2011 · 1 comment

Comments

@kostis
Copy link

kostis commented May 26, 2011

I was trying to track the origin of gen_server2 and I came to this place. Apologies if it's not the real origin.

I noticed that old fashioned specs are still used in the code:

-spec(hibernate/1 :: (gs2_state()) -> no_return()).

You may want to modernize these and make them look as follows:

-spec hibernate(gs2_state()) -> no_return().

Also, perhaps the use_specs ifdef is not needed anymore.

@hyperthunk
Copy link
Owner

Hi Kostis - thanks for pointing this out. The gen_server2 code is synced from the rabbitmq mercurial repository. I've been discussing with them to maintain the gen_server2 code as a separate repo or to get it fully contributed to OTP. In the meanwhile, I'll patch the -specs and submit back to their repo and see if they're willing to accept the change for now.

Cheers!

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

No branches or pull requests

2 participants