You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db['events']['lock'] would just be a bool and the request would wait for the bool to become false, change it to true, and then return, waiting for a followup request to set it back to false.
Alternatively, this could be generalized to a type of request that waits for a value to change.
The text was updated successfully, but these errors were encountered:
Sometimes it's useful to use an index in the database as a lock:
db['events']['lock']
would just be abool
and the request would wait for the bool to become false, change it to true, and then return, waiting for a followup request to set it back to false.Alternatively, this could be generalized to a type of request that waits for a value to change.
The text was updated successfully, but these errors were encountered: