Skip to content

Commit 3dd0f14

Browse files
committed
Add warning about closure not being cachable
1 parent 0437248 commit 3dd0f14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reference/constraints/Callback.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,12 @@ constructor of the Callback constraint::
251251
}
252252
}
253253

254+
.. warning::
255+
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.
259+
254260
Options
255261
-------
256262

0 commit comments

Comments
 (0)