v0.1.30 aims to build previews in a separate threads, avoiding to block navigation while building them.
It works with a separate thread running constantly and 2 mpsc (build request -> and preview result <-).
It's inefficient to have 2 threads just for that.
Is there a way to achieve the same goal with tokio ?
Could we use the tokio task scheduler to stop the preview building if we navigate quickly and only run the last one ?
v0.1.30 aims to build previews in a separate threads, avoiding to block navigation while building them.
It works with a separate thread running constantly and 2 mpsc (build request -> and preview result <-). It's inefficient to have 2 threads just for that.