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

Add background parameter to servers. #2529

Merged
merged 5 commits into from
Dec 28, 2024
Merged

Add background parameter to servers. #2529

merged 5 commits into from
Dec 28, 2024

Conversation

janiversen
Copy link
Collaborator

@janiversen janiversen commented Dec 26, 2024

ModbusServer.serve_forever() is simplified, and accept a new parameter "background="

background=False is default, and means the methods like earlier, that is block until the server stops.
background=True, means it will wait on a future.

NO task are created in the server, apart from what asyncio does internally.

@janiversen janiversen merged commit f3762bb into dev Dec 28, 2024
19 checks passed
@janiversen janiversen deleted the background branch December 28, 2024 19:49
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.

1 participant