You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 56618ac
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(host): enter one runtime store once per daemon runtime (#3794) (#3818)
* refactor(host-kit): keep one entered runtime-state store for the whole process (#3794)
Each module used to declare its own async-local store and expose a handle the daemon had to
aggregate. Modules now declare slot keys on one store: runtimeSlot reads a piece of state from
the store the current runtime entered, and createRuntimeStateHandle makes the one handle a
runtime enters and disposes. The standalone fallback stays, so a client process or a unit test
reads its own state without composing a runtime.
request-cancel drops its handle factory; the runtime's handle owns the slot and its disposer.
* refactor(platforms): declare helper and runner state as slots of the one store (#3794)
The Android helper and the Apple runner no longer own a store. Their modules declare slot keys
on host-kit's single store, and the daemon's entered handle scopes them. The Apple runner keeps
reaching the store through its host port, so no runner module imports host-kit (R77). The host
binding createAppleRunnerRuntimeState used to wrap is the existing setAppleRunnerHostEnvironment
called inside the runtime, so no per-platform handle factory remains.
* refactor(daemon): enter one runtime store once, at start (#3794)
startDaemonRuntime creates one handle and runs composition, dispatch and close inside it, so
every module slot resolves from that runtime without a per-module handle being composed in.
DaemonRuntimeDeps.runtimeStates, RuntimeContext and its extend aggregation are gone: the store
has nothing left to fold together. Bounded close keeps disposing state only when no work is
unfinished, now observed through a slot of the runtime's own store.
* refactor(root): bind the runner host into the daemon's entered store (#3794)
Composition runs inside the runtime's handle, so binding this runtime's host for the Apple
runner writes that state directly and the deps no longer carry platform handles back.
0 commit comments