From 21ee5fd0e111d960e00fc0e2bd04c30f7a7ff089 Mon Sep 17 00:00:00 2001 From: Stefan Krastanov Date: Thu, 8 Feb 2024 16:12:58 -0500 Subject: [PATCH] docstring for Resource --- src/resources/containers.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/resources/containers.jl b/src/resources/containers.jl index 9cf063a..9bd0196 100755 --- a/src/resources/containers.jl +++ b/src/resources/containers.jl @@ -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}