Depends on D4273
Adding Put method to blob's tests.
Differential D4274
[services] Tests - Blob - Add Put • karol on Jun 15 2022, 3:10 AM. Authored by Tags None Referenced Files
Details
Depends on D4273 Adding Put method to blob's tests. For now, this method's not invoked. The Rust project should build normally.
Diff Detail
Event Timeline
Comment Actions The problem is I couldn't figure out how to modify anything inside of the generator's body: let mut x = 0; let outbound = async_stream::stream! { //... x += 1; //... }; println!("=> {}", x); The output would still be 0. I tried borrowing, using Arc (can Rc/Arc be mutated at all?), but nothing worked. Something like this works like a charm: let mut b = false; { b = true; }; println!("hey {}", b); // true Comment Actions That's strange... one possible option might be to try Rc<RefCell<T>>, but there should be an easier way. Comment Actions
Didn't have time to investigate the generator thing, and honestly not sure I'll get to it tomorrow either. Can you please create a follow-up task in Linear? You can assign it to me |