mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
This clarifies that the Rust and C-style callbacks/closures need to be consumed (not called) before they are dropped. It also makes the from_c function consume the param closure so that it can be dropped without panicking. It also relaxes the restriction that the callback/closure can only be called once.