I need this to work on Rust/wasm32.
We have
f: Future<Output = ()>
I want to do
let handle = magic_func(f); // spawns a async for f
with the property that when handle
gets dropped, the (currently parked) f
gets killed .
Is this possible to do safely in Rust ?