Skip to content

Commit 196692f

Browse files
committed
Updated wording
1 parent 3dd0f14 commit 196692f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reference/constraints/Callback.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,10 @@ constructor of the Callback constraint::
253253

254254
.. warning::
255255

256-
When you are using a ``Closure`` or anonymous function, they cannot be cached
257-
like other annotations. For best performance, it is recommended to use a static
258-
callback method.
256+
Using a ``Closure`` together with annotation configuration will disable the
257+
annotation cache for that class/property/methods because ``Closure``s cannot
258+
be cached. For best performance, it is recommended to use a static callback
259+
method.
259260
260261
Options
261262
-------

0 commit comments

Comments
 (0)