scrap icon indicating copy to clipboard operation
scrap copied to clipboard

use in async context

Open thewh1teagle opened this issue 2 years ago • 1 comments

How can I use this in async context? I'm trying to use it in tauri framework, when user invoke function it captures frames in loop and do async task with every capture but I got the error:

Future cannot be sent between threads safely
within `impl futures::Future<Output = Result<(), std::string::String>>`, the trait `std::marker::Send` is not implemented for `*mut winapi::d3d11::ID3D11DeviceContext

thewh1teagle avatar Jan 17 '24 06:01 thewh1teagle

Some news? All I was able to do was creatiing sequences of async and sync function/impl which is faster (haven't tested yet)

heydocode avatar Aug 17 '24 18:08 heydocode