Behavior
Noun · Development
Definitions
In Erlang/Elixir, a module attribute that defines a set of callback functions a module must implement — analogous to interfaces or traits in other languages — enabling polymorphism and the OTP supervision patterns like GenServer.
In plain English: A contract in Erlang or Elixir that says a module must implement certain functions, similar to an interface in other languages.
Example: "Define a @behaviour and the compiler will warn you if any required callback is missing."