O'Reilly logo

Programming Elixir by Dave Thomas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 21Linking Modules: Behavio(u)rs and Use

When we wrote our OTP server, we wrote a module that started with code

 
defmodule​ Sequence.Server ​do
 
use​ GenServer
 
...

In this chapter we’ll explore what lines such as use GenServer actually do, and how we can write modules that extend the capabilities of other modules that use them.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required