next.js
9c32bc15 - refactor(turbo-tasks): Use ResolvedVc for CollectiblesSource (#78392)

Commit
312 days ago
refactor(turbo-tasks): Use ResolvedVc for CollectiblesSource (#78392) The `turbo_tasks::emit` function (https://turbopack-rust-docs.vercel.sh/rustdoc/turbo_tasks/fn.emit.html) already requires a `ResolvedVc`, so all of these values should be a `ResolvedVc`. That makes things easier for code consuming collectibles. Collectibles need some documentation, but they're how we emit diagnostics or collect file writes that are accumulated at the top-level. They're effectively tracked side-effects for a function. Collectibles are deduplicated. We need somewhat sane equality definitions, so we use `ResolvedVc` for that (we want to eventually remove the `Eq` definition on `Vc`, it doesn't behave as one might expect).
Author
bgw bgw
Parents
Loading