Skip to content

Commit ae8d70e

Browse files
committed
add an important note
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 07b9a6d commit ae8d70e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mm2src/mm2_main/src/mm2.rs

+2
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ pub async fn lp_main(
170170
}
171171

172172
/// Handles CTRL-C signals and shutdowns the KDF runtime gracefully.
173+
///
174+
/// It's important to spawn this task as soon as `Ctx` is in the correct state.
173175
#[cfg(not(target_arch = "wasm32"))]
174176
fn spawn_ctrl_c_handler(ctx: mm2_core::mm_ctx::MmArc) {
175177
ctx.spawner().spawn(async move {

0 commit comments

Comments
 (0)