twistor / flysystem-stream-wrapper

Provides the ability to register Flysystem filesystems as stream wrappers.
MIT License
58 stars 19 forks source link

Injectable Locking interface #20

Open Lewiscowles1986 opened 4 years ago

Lewiscowles1986 commented 4 years ago

Issues such as #16 seem to stem from the inability to inject locking behaviour.

Right now to change the API would seem to break downstream clients, so I propose that a an optional parameter be added to the constructor for the stream wrapper for a locking interface, which would allow those who want network locking and alternative behaviours to create their own implementations and absolve the library of solving locking and stream wrapper bindings.