File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,9 @@ isempty(c::GenericCondition) = isempty(c.waitq)
175
175
176
176
Create an edge-triggered event source that tasks can wait for. Tasks that call [`wait`](@ref) on a
177
177
`Condition` are suspended and queued. Tasks are woken up when [`notify`](@ref) is later called on
178
- the `Condition`. Edge triggering means that only tasks waiting at the time [`notify`](@ref) is
179
- called can be woken up. For level-triggered notifications, you must keep extra state to keep
178
+ the `Condition`. Waiting on a condition can return a value or raise an error if the optional arguments
179
+ of [`notify`](@ref) are used. Edge triggering means that only tasks waiting at the time [`notify`](@ref)
180
+ is called can be woken up. For level-triggered notifications, you must keep extra state to keep
180
181
track of whether a notification has happened. The [`Channel`](@ref) and [`Threads.Event`](@ref) types do
181
182
this, and can be used for level-triggered events.
182
183
You can’t perform that action at this time.
0 commit comments