Y
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
jitl
2014 days ago
Instantiate the FS with a context, instead of requiring a context for each kind of FS operation.
link
collinvandyck76
2014 days ago
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.
link
latchkey
2014 days ago
I was referring to io outside of the WalkDirFunc. ;-)
link