Skip to content

Conversation

@Qqwy
Copy link
Contributor

@Qqwy Qqwy commented May 27, 2019

Fixes #9081 by improving documentation of GenServer.server() type, as well as mentioning its possible values in the documentation of GenServer.cast.

@fertapric fertapric merged commit cddb455 into elixir-lang:master May 27, 2019
@fertapric
Copy link
Member

Thanks @Qqwy! 💜

@fertapric
Copy link
Member

fertapric commented May 27, 2019

Oh! I just realized that name is defined as @type name :: atom | {:global, term} | {:via, module, term}, so the previous typespec was correct. The extra docs in cast/2 and t:server/0 are good though 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Spec of GenServer.server() type is lacking information of :via-tuples

3 participants