The Golden Rule - Don’t Block the Event Loop #73
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
status-quo-story-ideas
"Status quo" user story ideas
Brief summary
As a user with a Java background, I'm used to the Netty/Vert.x approach to async where blocking the event loop is very bad, and almost certainly results in a performance hit, or the application being stuck.
This is really well detailed in the Vert.x doc, in The Golden Rule - Don’t Block the Event Loop paragraph:
I've seen this message pop up in several Vert.x projects, always for good reasons. In other projects, not necessarily using Vert.x, I've found it to be a good habit to add checks along those lines:
Thread.currentThread()
) to panic early.I've never seen this kind of error messages in Rust, and I'm not confident with my ability to use the right APIs in the right context. How can I make sure this doesn't come and bite me?
Optional details
The text was updated successfully, but these errors were encountered: