We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b51fd94 commit 682a7edCopy full SHA for 682a7ed
lib/elixir/lib/module.ex
@@ -421,6 +421,12 @@ defmodule Module do
421
end
422
423
424
+ The function given to `on_load` should avoid calling functions from
425
+ other modules. If you must call functions in other modules and those
426
+ modules are defined within the same project, the called modules must
427
+ have the `@compile {:autoload, true}` annotation, so they are loaded
428
+ upfront (and not from within the `@on_load` callback).
429
+
430
### `@vsn`
431
432
Specify the module version. Accepts any valid Elixir value, for example:
0 commit comments