dokan-dotnet
dokan-dotnet copied to clipboard
Feature: cancellation tokens
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?