Module

GenServer

Changes by version

Elixir 1.17.0

· 2 changes

Enhancement Tool: Elixir

Add c:GenServer.format_status/1 callback

Enhancement Tool: Elixir

Deprecate c:GenServer.format_status/2 callback to align with Erlang/OTP 25+

Elixir 1.11.1

· 1 change

Bugfix Tool: Elixir

Do not show warning when using super in GenServer.child_spec/1

Elixir 1.7.0

· 2 changes

Enhancement Tool: Elixir

Support the new handle_continue/2 callback on Erlang/OTP 21+

Enhancement Tool: Elixir

Warn if super is used in any of the GenServer callbacks

Elixir 1.6.1

· 1 change

Bugfix Tool: Elixir

Do not override user own @opts attribute

Elixir 1.6.0

· 1 change

Enhancement Tool: Elixir

Warn if init/1 is not defined in GenServer. This brings GenServer closer to the implementation in OTP and aligns all behaviours to require the init/1 callback

Elixir 1.4.0

· 1 change

Enhancement Tool: Elixir

Log warn on default handle_info/2 implementation

Elixir 1.3.0

· 2 changes

Enhancement Tool: Elixir

Raise a more meaningful exit if you try to GenServer.call/3 yourself

Bugfix Tool: Elixir

Ensures cast/2 returns :ok if locally registered process is not found

Elixir 1.2.0

· 1 change

Enhancement Tool: Elixir

Add GenServer.stop/1 for shutting down servers reliably

Elixir 1.1.0

· 1 change

Enhancement Tool: Elixir

Add GenServer.whereis/1 that expands GenServer dispatches into a proper pid

Elixir 0.12.1

· 1 change

Enhancement Tool: Elixir

GenServer now stops on unknown call/cast requests