1.
Choose a lock name and attempt to
acquire it
. If the lock is available you will acquire it. Otherwise, you can retry after a timeout.
By default, locks live in the same public namespace, so make sure you pick a hard-to-guess name to avoid collisions. Private namespaces are available for Business tier users.
from Hacker News https://lockable.dev
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.