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

Feat non block and nim2 #40

Merged
merged 8 commits into from
Dec 21, 2023
Merged

Feat non block and nim2 #40

merged 8 commits into from
Dec 21, 2023

Conversation

Clonkk
Copy link
Collaborator

@Clonkk Clonkk commented Dec 7, 2023

Fix tryReceive being actually blocking based on a timeout and make it non blocking instead.

Introduce waitForReceive to handle timeout based reception.

TODO : modify =destroy hook to remove var T prototype

… introduce waitForReceive to wait a message based on RCVTIMEO in a blocking way instead; add TODO comment about exception in =destroy introduced by Nim 2.0
@Clonkk Clonkk marked this pull request as draft December 7, 2023 17:13
@Clonkk
Copy link
Collaborator Author

Clonkk commented Dec 13, 2023

CI fails because doc gen and compiler do not agree. Opened nim-lang/Nim#23065 in reference

@Clonkk Clonkk marked this pull request as ready for review December 13, 2023 12:58
@Clonkk
Copy link
Collaborator Author

Clonkk commented Dec 21, 2023

@Araq I think this is in a state that can be merged - unless you wish to review / request changes first.

I'm not super happy about the waitAll function in async that discard every possible exception, but that was required to satisfy the raises: [] of destructor.

I'm still not sure how =destroy on async structure should behave, since we don't know what exception the async callback registered can raises. That's something of course that can always be improved later.

Once this is merged, i'll tag a new release

@Araq Araq merged commit 2c5e7a5 into master Dec 21, 2023
1 check passed
@Araq Araq deleted the feat_non_block_and_nim2 branch December 21, 2023 20:06
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