Function Mutexed

  • Internal

    This serializes access to an underlying async filesystem. For example, on an OverlayFS instance with an async lower directory operations like rename and rmdir may involve multiple requests involving both the upper and lower file systems -- they are not executed in a single atomic step. OverlayFS uses this to avoid having to reason about the correctness of multiple requests interleaving.

    Type Parameters

    Parameters

    • FS: T

    Returns typeof _MutexedFS & (new (...args: ConstructorParameters<T>) => _MutexedFS<InstanceType<T>>)

    Change using _ to using void pending https://github.com/tc39/proposal-discard-binding