Runs fn while holding the exclusive write lock for filePath, releasing it afterwards even on error. Unlike the sync version, waiting for the lock yields to the event loop instead of blocking it.
fn
filePath
Runs
fnwhile holding the exclusive write lock forfilePath, releasing it afterwards even on error. Unlike the sync version, waiting for the lock yields to the event loop instead of blocking it.