zed/gpui
Nathan Sobo fa6bd1f926 Introduce AsyncAppContext and simplify spawning
Now when you call spawn in various context, you pass an FnOnce that is called with an AsyncAppContext and returns a static future. This allows you to write async code similar to how our tests work, borrowing the guts of the AsyncAppContext when needed to interact, but using normal async await semantics instead of callbacks.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-05-12 15:16:49 -06:00
..
examples
grammars/context-predicate
src Introduce AsyncAppContext and simplify spawning 2021-05-12 15:16:49 -06:00
build.rs
Cargo.toml