From 8a69745bdcb06409ab7e4fc84718f34d7d54a7f9 Mon Sep 17 00:00:00 2001 From: James Wrigley Date: Sun, 14 Jan 2024 09:39:14 +0100 Subject: [PATCH] Add compat note to @lock (#52894) Fixes #52879. CC @IanButterworth --- 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