Skip to content

Conversation

@yuandrew
Copy link
Contributor

What was changed

Add in defaults to PollerBehavior constructors

Why?

To match python, https://github.com/temporalio/sdk-python/pull/830/files#diff-71bb79f8f6f7277331d9df6e0c1de02a9b08a91977289ddf876398e8ad5a8d53

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@yuandrew yuandrew requested a review from a team as a code owner June 26, 2025 17:38
/// </summary>
/// <param name="maximum">The maximum number of pollers at a time.</param>
public SimpleMaximum(int maximum)
public SimpleMaximum(int maximum = 5)
Copy link
Member

Choose a reason for hiding this comment

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

Let's leave this one no-default I think, since if they're explicitly setting simple max, they pretty clearly intend to change the default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, sounds good

@yuandrew yuandrew merged commit 99847b5 into temporalio:main Jun 26, 2025
9 checks passed
@yuandrew yuandrew deleted the poller-defaults branch June 26, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants