From 620970b06e61b9380c668e3e5267c750b7cc4971 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 17 Dec 2018 23:34:07 +0300 Subject: docs about cancelation --- ARCHITECTURE.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ARCHITECTURE.md') diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index d920ce2ab..d31290483 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -86,6 +86,11 @@ current state, incorporates changes and handles out `Analysis` --- an immutable consistent snapshot of world state at a point in time, which actually powers analysis. +One interesting aspect of analysis is its support for cancelation. When a change +is applied to `AnalysisHost`, first all currently active snapshots are +cancelled. Only after all snapshots are dropped the change actually affects the +database. + ### `crates/ra_lsp_server` An LSP implementation which uses `ra_analysis` for managing state and -- cgit v1.2.3