From 2cb72cd020b80d3f31601e5bf2afa8dd8f2cc23c Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 7 Sep 2021 17:28:53 +0200 Subject: [PATCH] TODO --- syndicate/src/actor.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syndicate/src/actor.rs b/syndicate/src/actor.rs index d38552c..eb1228b 100644 --- a/syndicate/src/actor.rs +++ b/syndicate/src/actor.rs @@ -530,6 +530,9 @@ impl FacetRef { tracing::error!(?err, "unexpected error from terminate_facet"); panic!("Unexpected error result from terminate_facet"); } + // TODO: The linked_tasks are being cancelled above ^ when their Facets drop. + // TODO: We don't want that: we want (? do we?) exit hooks to run before linked_tasks are cancelled. + // TODO: Example: send an error message in an exit_hook that is processed and delivered by a linked_task. for action in std::mem::take(&mut t.state.exit_hooks) { if let Err(err) = action(&mut t, &exit_status) { tracing::error!(?err, "error in exit hook");