Socket
Book a DemoInstallSign in
Socket

threadlock

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

threadlock

2.0.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

threadlock

Use the threadlock function in your class definition to automatically run instance methods inside of an instance-wide re-entrant lock (Monitor).

All locked methods in an instance are protect by a single lock. Alternatively, you can specify a custom lock, which need not be a Monitor; it can be anything that implements $synchronize

You can protect all or some of your methods from being run asynchronously.

In Ruby>=2.1, threadlock can also be syntactically used as a decorator.

See USAGE.rb for usage examples.

Enjoy.

Copyright 2013 : Joe McIlvain

(MIT License)

FAQs

Package last updated on 20 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.