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

Wrap all operations into a fiber #1

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Conversation

WyriHaximus
Copy link
Contributor

Running anything that awaits promises in the main fiber is strongly advised against because it can cause weird unexpected behavior.

Running anything that awaits promises in the main fiber is strongly advised against because it can cause weird unexpected behavior.
WyriHaximus added a commit to WyriHaximus/rmq-test that referenced this pull request Feb 10, 2025
As an addition to janlanger#1, by running all messages consumer in a fiber as well the awaits in there don't cause additional weirdness. 

Optionally consider using https://reactphp.org/promise-timer/#sleep as `await(sleep(1));` to no block anything.
janlanger pushed a commit that referenced this pull request Feb 11, 2025
As an addition to #1, by running all messages consumer in a fiber as well the awaits in there don't cause additional weirdness. 

Optionally consider using https://reactphp.org/promise-timer/#sleep as `await(sleep(1));` to no block anything.
@janlanger janlanger merged commit 81ebe87 into janlanger:master Feb 11, 2025
@janlanger
Copy link
Owner

It still behaves the same :(

@WyriHaximus
Copy link
Contributor Author

Doing a local run myself now/this evening. To get a full sense, and confirms some things from my chat

@WyriHaximus
Copy link
Contributor Author

It still behaves the same :(

Just merged jakubkulhan/bunny#164 that should result in the expected behavior

@WyriHaximus WyriHaximus deleted the patch-1 branch February 18, 2025 17:50
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