Skip to content

Commit 115d59e

Browse files
test(jco): update tests for future lift/lower, add list<u32, 3>
1 parent cb2f11e commit 115d59e

3 files changed

Lines changed: 504 additions & 434 deletions

File tree

crates/test-components/src/bin/future_lower.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ impl future_lower_async::Guest for Component {
126126
}
127127

128128
async fn read_future_value_example_resource_own(rx: FutureReader<resources::ExampleResource>) {
129-
let _ = rx.await;
130-
// All vals dropped at the end of this function
129+
let v = rx.await;
130+
drop(v); // we do an explicit drop to ensure the drop happens *before* this function returns
131131
}
132132

133133
async fn read_future_value_example_resource_own_attr(

0 commit comments

Comments
 (0)