Gives each task the exclusive use of its paths, and the shared use
of their parent directories. A task starts when each task before
it that uses one of its paths, or a directory above or below one,
is done.
Paths that differ only in case or in Unicode form are the same
path, because they can be the same file on disk.
Call fn when it is first in line for each of its paths. The
paths are free again when the promise of fn settles. Returns a
promise with the result of fn.
Gives each task the exclusive use of its paths, and the shared use of their parent directories. A task starts when each task before it that uses one of its paths, or a directory above or below one, is done.
Paths that differ only in case or in Unicode form are the same path, because they can be the same file on disk.