Lock on asynchronous code
DOM trap for a focus
It is a trap! (for a focus)
A mutex for guarding async workflows
provides locking mechanism to sync across browser tabs
A inter-process and inter-machine lockfile utility that works on a local or network file system
Safer Node.js Buffer API
Mutex locks for async functions
Push an array of items into an array, while being robust against prototype modification
TypeScript definitions for async-lock
Give a regex, get a robust predicate function that tests it against a string.
React focus lock for all Chakra components
`Array.prototype.concat`, but made safe by ignoring Symbol.isConcatSpreadable
Enables body scroll locking (for iOS Mobile and Tablet, Android, desktop Safari/Chrome/Firefox) without breaking scrolling of a target element (eg. modal/lightbox/flyouts/nav-menus)
Simple lock class
Async mutex lock for managing access to a shared resource
lock asynchronous resources.
mutex lock for javascript
A flexible way to handle safe area, also works on Android and web.
Throttle the parallelism of an asynchronous (promise returning) function / functions
🔐Body scroll locking that just works with everything
detect possibly catastrophic, exponential-time regular expressions
Fault-tolerant CSS parser for PostCSS
It is a trap! (for a focus)
A lock struct with a `const fn` constructor and no `unsafe` - ARCHIVED
A reimplementation of NumPy for use with rustpython in embedded interpreters
safe is a credentials manager for the linux command line written in Ruby. It locks and unlocks secrets in a safe simple and intuitive manner. You can then visit websites, manufacture keys and passwords, inject credentials into Jenkins, and interact with many tools including S3, GoogleDrive, Terraform, Git and Docker.
Thread-safe, transferable, flock-based lock file
Uses redis to take out multi-threaded/processed safe locks
GemfileLocker can lock all dependencies strictly or semi-strictly, so it gets safe to run `bundle update` anytime. It can unlock all dependencies so you can easily update to the latest versions.
Methods to add posix (fcntl based and nfs safe) locking to the builtin File class
A thread-safe, lock-free pool of Ractor workers with coordinator or round-robin dispatch for distributing work
Allows for safe concurrent updates to a single record without the need for locks.
Ortho is short for Orthogonality. It uses the principle of orthogonality to lock down your tests using the code artifact so that you can safely refactor!
Ruby gem for building robust service operations with guard validations, distributed mutex locks via Redlock, database transactions, and comprehensive error handling. Thread-safe and designed for production Rails applications.
This is a weak deduper to make things like bulk email run safer. It is not a lock safe for financial/security needs because it uses a weak redis locking pattern that can have race conditions. However, imagine a bulk email job that loops over 100 users, and enqueues a background email for each user. If the job fails at iteration 50, a retry would enqueue all the users again and many will receive dupes. This would continue multiple times as the parent job continued to rerun. By marking that a subjob has been enqueued, we can let that isolated job handle its own failures, and the batch enqueue job can run multiple times without re-enqueueing the same subjobs.
A lock-free MPMC queue that can be shared across Ruby Ractors — the only Ractor-safe bounded queue option since Ruby's built-in Queue uses Mutex and cannot cross Ractor boundaries.
SafeMemoize is a production-ready, zero-dependency memoization library for Ruby. It uses Ruby's prepend mechanism to wrap methods with a thread-safe cache (Mutex + double-check locking) that correctly handles nil and false return values — fixing the silent bug in the common ||= pattern. Results are cached per unique argument combination, so parameterized methods only compute each variant once. Additional features include TTL expiration, LRU cache size limiting, conditional caching via if:/unless: predicates, lifecycle hooks for hit/eviction/expiration events, per-instance metrics (hit rate, miss rate, computation time), targeted cache invalidation, custom cache key generators, and introspection helpers. Method visibility (public, protected, private) is fully preserved.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.