Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lone_wolf

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lone_wolf

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Lone Wolf

Background worker process API

Installation

$ gem install lone_wolf

Usage

# a simple job
work = Proc.new { |var| print "Hello #{var}!" }

# start a background process to do the job in a loop forever
worker = LoneWolf::Worker.new(job: work, loop: true, start: true)

# send work to the worker
["Kent", "Chuck", "Sam", "Brian"].each do |name|
  worker.input.write name
end

# kill the worker 
worker.kill!

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 31 Mar 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc