We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfb2f1c commit 060f262Copy full SHA for 060f262
lib/elixir/lib/module.ex
@@ -524,7 +524,11 @@ defmodule Module do
524
525
### `@after_compile`
526
527
- A hook that will be invoked right after the current module is compiled.
+ A hook that will be invoked with the bytecode of the current module.
528
+ Although the module has already been compiled, its bytecode may not have
529
+ been loaded to memory nor written to disk. For those reasons, prefer to
530
+ use `@after_verify` callbacks or use `Code.ensure_compiled!/1` to wait
531
+ until the module is fully available for introspection/invocation.
532
533
Accepts a module or a `{module, function_name}` tuple. The function
534
must take two arguments: the module environment and its bytecode.
0 commit comments