Skip to content

Add compat note for OncePer types #58716

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions base/lock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,9 @@ calls in the same process will return exactly the same value. This is useful in
code that will be precompiled, as it allows setting up caches or other state
which won't get serialized.

!!! compat "Julia 1.12"
This type requires Julia 1.12 or later.

## Example

```jldoctest
Expand Down Expand Up @@ -814,6 +817,9 @@ if that behavior is correct within your library's threading-safety design.

See also: [`OncePerTask`](@ref).

!!! compat "Julia 1.12"
This type requires Julia 1.12 or later.

## Example

```jldoctest
Expand Down Expand Up @@ -942,6 +948,9 @@ exactly once per Task. All future calls in the same Task will return exactly the

See also: [`task_local_storage`](@ref).

!!! compat "Julia 1.12"
This type requires Julia 1.12 or later.

## Example

```jldoctest
Expand Down