Skip to main content

subscribe_session_changes

Function subscribe_session_changes 

Source
pub fn subscribe_session_changes(
    observer: SharedSessionChangeObserver,
) -> SessionChangeSubscription
Expand description

Session-metadata change notification for surfaces that project a session. Register an observer notified after any session metadata update commits through a store this VM opens, or after a WAL watcher sees another process rename a session in the same file.

Every canonical store opened here carries the registered observers, so a surface does not have to be handed the specific handle a writer happened to use.