feat: with ctrl-c signal
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-08-07 11:40:48 +02:00
parent 0fd19c771f
commit 56cc671593
Signed by: kjuulh
GPG Key ID: D85D7535F18F35FA

View File

@ -134,6 +134,10 @@ impl Mad {
}
res = comp.run(job_cancellation) => {
error_tx.send(res).await
}
_ = tokio::signal::ctrl_c() => {
error_tx.send(Ok(())).await
}
}
});