Gust.DBLocker.Postgres (gust v0.1.26)

Implements DB-backed advisory locking using Postgres.

Uses pg_try_advisory_lock/1 inside a checkout to attempt the lock and passes the success flag to the provided callback.

Summary

Functions

try_lock(lock_key, attempt_result_fun)

Callback implementation for Gust.DBLocker.try_lock/2.