Skip to content

Commit 8a69745

Browse files
authored
Add compat note to @lock (#52894)
Fixes #52879. CC @IanButterworth
1 parent 46e6f23 commit 8a69745

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/lock.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ end
260260
```
261261
This is similar to using [`lock`](@ref) with a `do` block, but avoids creating a closure
262262
and thus can improve the performance.
263+
264+
!!! compat
265+
`@lock` was added in Julia 1.3, and exported in Julia 1.10.
263266
"""
264267
macro lock(l, expr)
265268
quote

0 commit comments

Comments
 (0)