Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor documentation additions - Akka Streams RestartFlow and RestartSettings #6820

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

mhbuck
Copy link
Contributor

@mhbuck mhbuck commented Jun 28, 2023

Changes

Addition of method documentation that were found missing when working with restart logic.

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

Copy link
Contributor Author

@mhbuck mhbuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor tweaks that were encountered today doing changes around Restart

@@ -162,7 +162,7 @@ public static class RestartFlow
/// <para>This uses the same exponential backoff algorithm as <see cref="BackoffOptions"/>.</para>
/// </summary>
/// <param name="flowFactory">A factory for producing the <see cref="Flow"/>] to wrap.</param>
/// <param name="settings"></param>
/// <param name="settings"><see cref="RestartSettings" /> defining restart configuration</param>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matching the documentation for the WithBackoff method in this class

Comment on lines +29 to +34
/// <summary>
/// Creates a new instance of <see cref="RestartSettings"/> class
/// </summary>
/// <param name="minBackoff">Minimum (initial) duration until the child actor will started again, if it is terminated</param>
/// <param name="maxBackoff">The exponential back-off is capped to this duration</param>
/// <param name="randomFactor">After calculation of the exponential back-off an additional random delay based on this factor is added, e.g. `0.2` adds up to `20%` delay. In order to skip this additional delay pass in `0`.</param>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addition of documentation matching the extension methods in the class

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) June 28, 2023 17:36
@Aaronontheweb Aaronontheweb merged commit 819af0f into akkadotnet:dev Jun 28, 2023
@mhbuck mhbuck deleted the documentation branch June 30, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants