Hacker News new | ask | show | jobs
by latchkey 2014 days ago
Reading the API, I wonder how they plan to cancel long running (blocking) tasks, like WalkDir.
2 comments

Instantiate the FS with a context, instead of requiring a context for each kind of FS operation.
Since there's no context in the API, you'd probably just need to use a WalkDirFunc with a closure that can reach the context. Awkward for sure.
I was referring to io outside of the WalkDirFunc. ;-)