Socket
Book a DemoInstallSign in
Socket

locked_process

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

locked_process

0.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

LockedProcess

Locked process is a way of executing a Thread but preventing the same Thread from being executed while the first one is still running.

Instalation

gem install 'locked_process'

Usage

require 'locked_process'

process = LockedProcess.new('/tmp/download_images.pid') do
  MyImageDownloader.new.download
end

process.execute # executes MyImageDownloader.new.download in a Thread

# if the process is still running
process.execute # raises LockedProcess::Error

Author

Marcelo Jacobus

FAQs

Package last updated on 26 Apr 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.