Skip to content

Commit

Permalink
docs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubwro committed Sep 21, 2024
1 parent bfda008 commit dc69c36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pubsub/subscribe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ $(SIGNATURES)
Obtains batch of messages for synchronous subscription.
Optional keyword arguments:
- `no_wait`: do not wait for next message, return `nothing` if buffer is empty
- `no_throw`: do not throw exception, returns `nothing` if cannot get next message
- `no_wait`: do not wait for next message, return empty vector if buffer is empty
- `no_throw`: do not throw exception, stops collecting messages on error
"""
function next(connection::Connection, sub::Sub, batch::Integer; no_wait = false, no_throw = false)::Vector{Msg}
msgs = []
Expand All @@ -187,8 +187,8 @@ $(SIGNATURES)
Obtains batch of messages for synchronous subscription converting them to reqested `T` type.
Optional keyword arguments:
- `no_wait`: do not wait for next message, return `nothing` if buffer is empty
- `no_throw`: do not throw exception, returns `nothing` if cannot get next message
- `no_wait`: do not wait for next message, return empty vector if buffer is empty
- `no_throw`: do not throw exception, stops collecting messages on error
"""
function next(T::Type, connection::Connection, sub::Sub, batch::Integer; no_wait = false, no_throw = false)::Vector{T}
find_msg_conversion_or_throw(T)
Expand Down

0 comments on commit dc69c36

Please sign in to comment.