Skip to content

Commit

Permalink
Update src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Matěj Laitl <[email protected]>
  • Loading branch information
goodhoko and strohel authored Aug 13, 2024
1 parent ba3dba1 commit df86f8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ impl<M> Context<M> {
///
/// Note that subscribing twice to the same event would result in duplicate events -- no
/// de-duplication of subscriptions is performed.
///
/// This method may fail if it is not possible to send the latest event. In this case it is
/// guaranteed that the subscription did not take place. You can safely try again.
pub fn subscribe_and_receive_latest<E: Event + Into<M>>(&self) -> Result<(), SendError>
where
M: 'static,
Expand Down

0 comments on commit df86f8f

Please sign in to comment.