3 ms·
Reading the API, I wonder how they plan to cancel long running (blocking) tasks, like WalkDir.
by latchkey 6y ago
Reading the API, I wonder how they plan to cancel long running (blocking) tasks, like WalkDir.
- collinvandyck76 6y agoSince 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.
- latchkey 6y agoI was referring to io outside of the WalkDirFunc. ;-)
- jitl 6y agoInstantiate the FS with a context, instead of requiring a context for each kind of FS operation.