From c7d6fa58a3d9c371b5208be114ac54e00701c5ae Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Sat, 13 Jan 2024 20:55:03 +0100 Subject: [PATCH] Add compat note to @lock --- base/lock.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/lock.jl b/base/lock.jl index e3a8463578074..73722050699ee 100644 --- a/base/lock.jl +++ b/base/lock.jl @@ -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