aatxe / irc

the irc crate – usable, async IRC for Rust
Mozilla Public License 2.0
533 stars 99 forks source link

spawn handler futures on the reactor #173

Closed ZoeyR closed 5 years ago

ZoeyR commented 5 years ago

Right now handler calls are done entirely sequentially. This defeats the purpose of async since one handler that has a long running async operation (say a network call) will prevent other messages from being processed. This PR spawns the handler futures on the reactor so that they don't block the execution of futher handlers.

aatxe commented 5 years ago

Good catch! Thanks! 😄