a promise library with built-in distributed locking