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

Mention timeout unit in ENetConnection::service docs #93927

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

marcospb19
Copy link
Contributor

Add a note about timeout field being in milliseconds.

Had to test locally to figure it out haha.

@marcospb19 marcospb19 requested a review from a team as a code owner July 4, 2024 08:34
@AThousandShips AThousandShips added enhancement documentation cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Jul 4, 2024
@AThousandShips AThousandShips added this to the 4.x milestone Jul 4, 2024
@AThousandShips AThousandShips requested a review from a team July 4, 2024 08:42
@akien-mga akien-mga modified the milestones: 4.x, 4.3 Jul 4, 2024
@akien-mga akien-mga changed the title tweak ENetConnection::service() docs Mention that timeout unit in ENetConnection::service docs Jul 4, 2024
@akien-mga akien-mga changed the title Mention that timeout unit in ENetConnection::service docs Mention timeout unit in ENetConnection::service docs Jul 4, 2024
@AThousandShips AThousandShips removed the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Jul 4, 2024
@Mickeon
Copy link
Contributor

Mickeon commented Jul 4, 2024

It is very unorthodox to mention the only parameter of this method in its own line at the very bottom of the description.

Copy link
Member

@mhilbrunner mhilbrunner left a comment

Choose a reason for hiding this comment

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

Note that this is an upstream ENet function, and the docs are verbatim ENet docs.

timeout is a bit tricky here: see discussion here and here.

With these possible footguns, we should maybe add some further advice and information here, or at least point to it elsewhere.

That said, that can be followup work or an issue, this PR is good and correct as far as I can see. Thanks for taking the time to improve something you had to find out yourself for everyone else :)

@akien-mga akien-mga merged commit f9a58be into godotengine:master Jul 4, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

@marcospb19 marcospb19 deleted the tweak-enetconnection-doc branch July 5, 2024 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release documentation enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants