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:
parent
cd951e18a0
commit
a252cfdfdf
|
@ -1095,8 +1095,7 @@ impl Actor {
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
tracing::trace!("start");
|
tracing::trace!("start");
|
||||||
self.run(|t| {
|
self.run(|t| {
|
||||||
boot(t)?;
|
t.facet(boot)?;
|
||||||
t.stop_if_inert();
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}).await;
|
}).await;
|
||||||
let result = self.ac_ref.exit_status().expect("terminated");
|
let result = self.ac_ref.exit_status().expect("terminated");
|
||||||
|
|
Loading…
Reference in New Issue