Introduce a facet immediately under the root facet for user code to run in, to allow something akin to replacement of the root facet

This commit is contained in:
Tony Garnock-Jones 2021-08-27 23:38:51 +02:00
parent cd951e18a0
commit a252cfdfdf
1 changed files with 1 additions and 2 deletions

View File

@ -1095,8 +1095,7 @@ impl Actor {
tokio::spawn(async move {
tracing::trace!("start");
self.run(|t| {
boot(t)?;
t.stop_if_inert();
t.facet(boot)?;
Ok(())
}).await;
let result = self.ac_ref.exit_status().expect("terminated");