MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / resource_drop

Method resource_drop

tests/all/component_model.rs:84–95  ·  view source on GitHub ↗
(
        self,
        store: &mut Store<T>,
        resource: ResourceAny,
    )

Source from the content-addressed store, hash-verified

82 }
83
84 async fn resource_drop<T: Send>(
85 self,
86 store: &mut Store<T>,
87 resource: ResourceAny,
88 ) -> Result<()> {
89 match self {
90 ApiStyle::Sync => resource.resource_drop(store),
91 ApiStyle::Async | ApiStyle::AsyncNotConcurrent | ApiStyle::Concurrent => {
92 resource.resource_drop_async(store).await
93 }
94 }
95 }
96}
97
98#[test]

Callers 8

manually_destroyFunction · 0.45
can_use_own_for_borrowFunction · 0.45
drop_no_dtorFunction · 0.45
runFunction · 0.45

Calls 1

resource_drop_asyncMethod · 0.80

Tested by 7

manually_destroyFunction · 0.36
can_use_own_for_borrowFunction · 0.36
drop_no_dtorFunction · 0.36
runFunction · 0.36