Introduce MultiBuffer::stream_excerpts_with_context_lines

This allows us to push excerpts in a streaming fashion without blocking
the main thread.
This commit is contained in:
Antonio Scandurra 2023-01-19 15:42:14 +01:00
parent a8f466b422
commit 5ce065ac92
4 changed files with 114 additions and 51 deletions

View file

@ -19,6 +19,7 @@ theme = { path = "../theme" }
util = { path = "../util" }
workspace = { path = "../workspace" }
anyhow = "1.0"
futures = "0.3"
log = { version = "0.4.16", features = ["kv_unstable_serde"] }
postage = { version = "0.4.1", features = ["futures-traits"] }
serde = { version = "1.0", features = ["derive", "rc"] }