Skip to content

Commit 66ec6ee

Browse files
authored
Add compat note for OncePer types (#58716)
Closes #58703
1 parent b621328 commit 66ec6ee

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

base/lock.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,9 @@ calls in the same process will return exactly the same value. This is useful in
704704
code that will be precompiled, as it allows setting up caches or other state
705705
which won't get serialized.
706706
707+
!!! compat "Julia 1.12"
708+
This type requires Julia 1.12 or later.
709+
707710
## Example
708711
709712
```jldoctest
@@ -814,6 +817,9 @@ if that behavior is correct within your library's threading-safety design.
814817
815818
See also: [`OncePerTask`](@ref).
816819
820+
!!! compat "Julia 1.12"
821+
This type requires Julia 1.12 or later.
822+
817823
## Example
818824
819825
```jldoctest
@@ -942,6 +948,9 @@ exactly once per Task. All future calls in the same Task will return exactly the
942948
943949
See also: [`task_local_storage`](@ref).
944950
951+
!!! compat "Julia 1.12"
952+
This type requires Julia 1.12 or later.
953+
945954
## Example
946955
947956
```jldoctest

0 commit comments

Comments
 (0)