mind: use tokio-scoped for Mind/UI loop lifetimes
Both event loops borrow &mind through a scoped spawn — no Arc on Mind needed. Interior Arcs on agent/shared stay (background spawns need 'static), but event_loop::run() now takes &Arc refs instead of cloned Arcs. Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
aae9687de2
commit
5eaba3c951
3 changed files with 30 additions and 12 deletions
|
|
@ -65,6 +65,7 @@ webpki-roots = "1"
|
|||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
tracing-appender = "0.2"
|
||||
tokio-scoped = "0.2.0"
|
||||
|
||||
[build-dependencies]
|
||||
capnpc = "0.20"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue