Skip to content

Commit

Permalink
Add compat note to @lock (#52894)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley authored Jan 14, 2024
1 parent 46e6f23 commit 8a69745
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/lock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ end
```
This is similar to using [`lock`](@ref) with a `do` block, but avoids creating a closure
and thus can improve the performance.
!!! compat
`@lock` was added in Julia 1.3, and exported in Julia 1.10.
"""
macro lock(l, expr)
quote
Expand Down

0 comments on commit 8a69745

Please sign in to comment.