Open lauti7 opened 1 year ago
You can get that error if the runtime is shutting down.
The runtime shuts down when it goes out of scope, or for the tokio::main
macro, when you return from main.
@Darksonn Thx for your quick response. So based on what u said, is there no way to avoid that panic? Is it not something that I should be worried about?
In general, the only way to avoid it is to make sure that the tasks have exited before you start the shutdown process.
Besides awaiting every task because I think I'm actually doing that, Is there any other way to assure that?
Version
Platform
Description Hi, I'm opening up this issue to seek some help or an explanation for an error message I'm getting when running an Actix server with Tokio runtime and some Tokio spawned tasks.
The error is this:
Also, it seems to be intermittent. Sometimes happens when SIGINT, and other times doesn't.
I'd like to know what this error is related to and why the panic is provoked or maybe if I'm misusing something.