next.js
ed7fba76 - refactor(turbo-tasks): Rename ResolvedValue trait to NonLocalValue (#73191)

Commit
1 year ago
refactor(turbo-tasks): Rename ResolvedValue trait to NonLocalValue (#73191) I want to allow `OperationVc` to be used in all the places that `ResolvedVc` is allowed. The real restriction we care about is that the `Vc`s we have aren't task-local. - Rename `ResolvedValue` to `NonLocalValue`. Move it into a different `vc/local.rs` module. - Rename arguments used in macros to `non_local` (for `turbo_tasks::value` and `turbo_tasks::value_trait`) and `non_local_return` (for `turbo_tasks::function`). - Implement `NonLocalValue` for `OperationVc`. ![Screenshot 2024-11-25 at 16-43-56 NonLocalValue in turbo_tasks - Rust.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/HAZVitxRNnZz8QMiPn4a/effbb437-1a20-4973-bd83-e93b987f0e89.png)
Author
bgw bgw
Parents
Loading