Skip to content

Commit

Permalink
Merge pull request #263 from esl/fix-handler-description
Browse files Browse the repository at this point in the history
Fix the description of handler application
  • Loading branch information
jacekwegr committed Apr 29, 2024
2 parents 50ca35a + 34cf0e1 commit 2cc31b5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/escalus_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,9 @@ wait_forever(Client) ->
%% @doc Receives incoming stanzas in a loop until the specified timeout passes.
%% Whenever a stanza is received:
%% - If there is no 'pred' in Options OR 'pred' returns 'true', the stanza is returned.
%% - Otherwise, the handlers specified in Client#client.props are applied one by one
%% until one of them returns 'true'.
%% - If any of the handlers returns 'true', the loop continues, waiting for a new stanza.
%% - Otherwise, the stanza is returned.
%% - Otherwise, the handlers specified in Client#client.props are applied one by one.
%% If one of them returns 'true', no more handlers are applied.
%% Afterwards, the main loop continues, waiting for a new stanza.
%%
%% Meaning of the options:
%% - pred - receive only specific stanzas, skipping the rest and handling them
Expand Down

0 comments on commit 2cc31b5

Please sign in to comment.