Possible to do a ControlOut request with a timeout #91
Replies: 3 comments 2 replies
-
Issue #4 is open for this feature, but it would currently require either the |
Beta Was this translation helpful? Give feedback.
-
Thanks. Although the issue title is a bit misleading no?
It would be "timeouts for async/non-blocking IO" no?
I guess I'll implement the "race", using select I guess?
…On Fri, Nov 15, 2024, 1:26 AM Martin Ling ***@***.***> wrote:
Issue #4 <#4> is open for this
feature, but it would currently require either the futures_lite crate to
add a timeout API, or nusb to gain additional dependencies.
—
Reply to this email directly, view it on GitHub
<#91 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKF4LA5RFFMCIZFBPWK3FT2AU5TVAVCNFSM6AAAAABRZKCPICVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRWGEZDGNY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yeah the title is misleading at this point I guess. For some context, when that issue was opened, the But those timeouts aren't really integrated into the async side of things - those methods just use the synchronous APIs on the OS. And those methods are only available for control transfers. So having a |
Beta Was this translation helpful? Give feedback.
-
Great crate, easy to use, thanks for that!
I'm using nusb from my Iced application, and using all the async methods.
Is it possible to do an Interface::control_out() call, but with a timeout?
If not, I guess I will find a way to cancel the future after some time, but as I saw it on control_out_blocked() I thought I'd ask.
thanks
Beta Was this translation helpful? Give feedback.
All reactions