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
77
77
Returns `true` if the store is full, similarly to the meaning of `islocked` for `Base.ReentrantLock`.
78
78
79
79
```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)
81
84
false
82
85
83
86
julia> request(res); islocked(res)
Original file line number Diff line number Diff line change @@ -88,10 +88,13 @@ isready(sto::Store) = sto.load > 0
88
88
Returns `true` if the store is full, similarly to the meaning of `islocked` for `Base.ReentrantLock`.
89
89
90
90
```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)
92
92
false
93
93
94
94
julia> put!(store, :message); islocked(store)
95
+ false
96
+
97
+ julia> put!(store, :another_message); islocked(store)
95
98
true
96
99
```
97
100
"""
You can’t perform that action at this time.
0 commit comments