Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

feat: adds waiting functionality#9

Open
MelvinKl wants to merge 8 commits intomainfrom
fetaure/wait
Open

feat: adds waiting functionality#9
MelvinKl wants to merge 8 commits intomainfrom
fetaure/wait

Conversation

@MelvinKl
Copy link
Contributor

No description provided.

@MelvinKl MelvinKl marked this pull request as ready for review November 5, 2024 09:38
class WaitConfig:
sleep_before_wait: int = 0
throttle: int = 5
timeout: int = 30
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the throttle in seconds and the timeout in minutes? Feels a bit strange

Copy link
Contributor

Choose a reason for hiding this comment

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

And maybe could we have some small description for each field?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is the throttle in seconds and the timeout in minutes? Feels a bit strange

Yes. That is the same as the Go SDK

Copy link
Contributor

Choose a reason for hiding this comment

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

In the Go SDK the fields are of type time.Duration instead of int. Then the user can pass them e.g. either as 5 * time.Seconds or 1 * time.Minute

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah ok, I see.
In that case this should be changes here and everything should be in seconds.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants