You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What exactly happens when my FS implementation takes too long?
Right now I am doing async calls and explicitly call .Result, which blocks the current thread until result is completed.
But I am not passing any cancellation tokens to them, because I don't get any from Dokan, so the calls can essentially last forever.
What do you think is the best option, have Dokan generate cancellation tokens matching its own expectation of when the calls should complete, or just create my own and set the same timeout value as I pass to DOKAN_OPTIONS.TimeOut?
The text was updated successfully, but these errors were encountered:
The best option is to create your own cancellation token with the same timeout as you pass to Dokan. That will avoid lots of unnecessary work by called methods when the request from Dokan has timed out anyway.
What exactly happens when my FS implementation takes too long?
Right now I am doing async calls and explicitly call
.Result
, which blocks the current thread until result is completed.But I am not passing any cancellation tokens to them, because I don't get any from Dokan, so the calls can essentially last forever.
What do you think is the best option, have Dokan generate cancellation tokens matching its own expectation of when the calls should complete, or just create my own and set the same timeout value as I pass to
DOKAN_OPTIONS.TimeOut
?The text was updated successfully, but these errors were encountered: