Skip to content

Feature: cancellation tokens #359

@lostmsu

Description

@lostmsu

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions