Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use in async context #48

Open
thewh1teagle opened this issue Jan 17, 2024 · 1 comment
Open

use in async context #48

thewh1teagle opened this issue Jan 17, 2024 · 1 comment

Comments

@thewh1teagle
Copy link

thewh1teagle commented Jan 17, 2024

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
@heydocode
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants