Skip to content

Commit

Permalink
docstring for Resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov committed Feb 8, 2024
1 parent e6b061b commit 21ee5fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/resources/containers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function Container{T}(env::Environment, capacity::N=one(N); level=zero(N)) where
Container{N, T}(env, capacity; level=N(level))
end

"""An alias for `Container{Int, Int}`, one of the most frequently used types of synchronization primitive."""
const Resource = Container{Int, Int}

function put!(con::Container{N, T}, amount::N; priority=zero(T)) where {N<:Real, T<:Number}
Expand Down

0 comments on commit 21ee5fd

Please sign in to comment.