lemunozm / message-io

Fast and easy-to-use event-driven network library.
Apache License 2.0
1.11k stars 74 forks source link

Added NodeListener::enqueue #80

Closed lemunozm closed 3 years ago

lemunozm commented 3 years ago

This PR adds a function to handle the library similar to version 0.11. It adds a non-closure synchronized way (based on an event queue) to process the events.

Nevertheless, this easy comes with an increase in latency. In order to get the best performance, is better to use the for_each functions.