File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,10 @@ isready(c::Container) = c.level > 0
7777Returns `true` if the store is full, similarly to the meaning of `islocked` for `Base.ReentrantLock`.
7878
7979```jldoctest
80- julia> sim = Simulation(); res = Resource(sim); islocked(res)
80+ julia> sim = Simulation(); res = Resource(sim, 2); islocked(res)
81+ false
82+
83+ julia> request(res); islocked(res)
8184false
8285
8386julia> request(res); islocked(res)
Original file line number Diff line number Diff line change @@ -88,10 +88,13 @@ isready(sto::Store) = sto.load > 0
8888Returns `true` if the store is full, similarly to the meaning of `islocked` for `Base.ReentrantLock`.
8989
9090```jldoctest
91- julia> sim = Simulation(); store = Store{Symbol}(sim; capacity=1 ); islocked(store)
91+ julia> sim = Simulation(); store = Store{Symbol}(sim; capacity=2 ); islocked(store)
9292false
9393
9494julia> put!(store, :message); islocked(store)
95+ false
96+
97+ julia> put!(store, :another_message); islocked(store)
9598true
9699```
97100"""
You can’t perform that action at this time.
0 commit comments