diff --git a/docs/src/guides/blockingandyielding.md b/docs/src/guides/blockingandyielding.md index 09ef620..b1aa47a 100755 --- a/docs/src/guides/blockingandyielding.md +++ b/docs/src/guides/blockingandyielding.md @@ -46,4 +46,6 @@ As you can see `Resource` shares some properties with `ReentrantLock` and avails `take!` and `unlock` are both implemented on top of the lower level `get`. -The `Base.lock` and `Base.unlock` are aliased to `ConcurrentSim.request` and `ConcurrentSim.release` respectively for semantic convenience when working with `Resource`. \ No newline at end of file +The `Base.lock` and `Base.unlock` are aliased to `ConcurrentSim.request` and `ConcurrentSim.release` respectively for semantic convenience when working with `Resource`. + +`unlock(::Resource)` is instantaneous so the `@yield` is not strictly necessary. Similarly for `put!(::Store)` if the store has infinite capacity. \ No newline at end of file