Showing content from https://github.com/proposal-signals/proposal-signals/issues/30 below:
Async · Issue #30 · tc39/proposal-signals · GitHub
Lots of people here are interested in handling async/await in conjunction with signals. Some approaches that have been suggested:
- @modderme123 's Bubble reactivity uses something like React Suspense, where a pending promise state can be propagated through the dependency graph. This might require support from the core for efficiency of propagating that information and to fully eliminate the "function coloring problem".
- @pzuraq has proposed "Relays" to connect graphs together in a way that may be managed in a naturally async way. This may benefit from built-in support as well--it can mostly be implemented using effects, but ownership would be different.
- @alxhub has wondered whether it would be possible to make async/await in a computed "just work", but also doesn't consider this an MVP requirement.
transitive-bullshit, lifeart, emattias, cinderblock and jonikorpi
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4