package gatefs

import ""

Package gatefs provides an implementation of the FileSystem interface that wraps another FileSystem and limits its concurrency.


Package Files


func New

func New(fs vfs.FileSystem, gateCh chan bool) vfs.FileSystem

New returns a new FileSystem that delegates to fs. If gateCh is non-nil and buffered, it's used as a gate to limit concurrency on calls to fs.

Package gatefs imports 3 packages (graph).

Version v0.1.8 (latest) | Published Dec 2, 2021 | Platform: linux/amd64 | Updated 3 weeks ago

Tools for package owners.