use anyhow::Result; use turbo_tasks::{OperationVc, Vc}; #[turbo_tasks::function(operation)] fn bare_op_fn() -> Vc { Vc::cell(21) } #[turbo_tasks::function(operation)] async fn multiply(value: OperationVc, coefficient: i32) -> Result> { Ok(Vc::cell(*value.connect().await? * coefficient)) } #[allow(dead_code)] fn use_operations() { let twenty_one: OperationVc = bare_op_fn(); let _forty_two: OperationVc = multiply(twenty_one, 2); } fn main() {}