Skip to content

Commit 41e218b

Browse files
fertapricjosevalim
authored andcommitted
Document version of :start/:stop events (tracers) (#9871)
1 parent 94221f2 commit 41e218b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/elixir/lib/code.ex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ defmodule Code do
4343
You can configure your list of tracers via `put_compiler_option/2`. The
4444
following events are available to tracers:
4545
46-
* `:start` - invoked whenever the compiler starts to trace a new lexical
47-
context, such as a new file. Keep in mind the compiler runs in parallel,
48-
so multiple files may invoke `:start` and run at the same time. The value
49-
of the `lexical_tracker` of the macro environment, albeit opaque, can be
50-
used to uniquely identify the environment
51-
52-
* `:stop` - invoked whenever the compiler stops tracing a new lexical
53-
context, such as a new file
46+
* `:start` - (since v1.11.0) invoked whenever the compiler starts to trace
47+
a new lexical context, such as a new file. Keep in mind the compiler runs
48+
in parallel, so multiple files may invoke `:start` and run at the same
49+
time. The value of the `lexical_tracker` of the macro environment, albeit
50+
opaque, can be used to uniquely identify the environment.
51+
52+
* `:stop` - (since v1.11.0) invoked whenever the compiler stops tracing a
53+
new lexical context, such as a new file.
5454
5555
* `{:import, meta, module, opts}` - traced whenever `module` is imported.
5656
`meta` is the import AST metadata and `opts` are the import options.

0 commit comments

Comments
 (0)