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

tasks

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tasks

  • 1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Tasks -- Better Process Manager for Ruby

Traffic Control

spawn

tasks provides spawn even in ruby 1.8.

require 'tasks'
include Tasks

pid = spawn './something.rb'
...
system "kill #{pid}"

spawn is like system with '&' and it also returns the procces id.

love_pact

tasks supports a couple to do a love pact.

require 'tasks'
include Tasks

master_pid = spawn './master.rb'
slave_pid = spawn './slave.rb'

fork do
  love_pact master_pid, slave_pid
end

If a master died, the slave dies immediately.

Note that now love_pact works only in UNIX.

FAQs

Package last updated on 09 Feb 2010

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