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

Modified UpgradeAsync to use threads and loop->defer() #1154

Closed
wants to merge 3 commits into from

Conversation

Sunstradamus
Copy link
Contributor

Resolves #1153; hopefully this also stops future questions about multithreading ws->write() as well.

@ghost
Copy link

ghost commented Jan 26, 2021

Sure but "async" does not automatically mean "threaded". It would be a much better example if you instead of spawning a thread, made a timer using uSockets. That way you better demonstrate the single-threaded nature of the library.

@ghost
Copy link

ghost commented Jan 26, 2021

Wait what - I already had it that way. This PR is not an improvement IMO.

@ghost ghost closed this Jan 26, 2021
This pull request was closed.
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.

Calling websocket->close() and websocket->write() from another thread
1 participant