Transition.transit

You're seeing just the callback transit, go back to Transition module for more information.

Specs

transit(struct(), [{:event, String.t()}]) ::
  {:ok, struct()} | {:error, :not_allowed}