let mut reactor = IrcReactor::new().unwrap();
let client = reactor.prepare_client_and_connect(&config).unwrap();
reactor.register_client_with_handler(client, process_msg);
reactor.run().unwrap();
and have long-running network requests in process_msg which currently blocks all subsequent messages from processing. The docs say this is an async friendly library, so how am I supposed to run long-running processes inside the handler and still allow subsequent messages to come through?
So I'm using the standard setup:
and have long-running network requests in
process_msg
which currently blocks all subsequent messages from processing. The docs say this is an async friendly library, so how am I supposed to run long-running processes inside the handler and still allow subsequent messages to come through?