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

cod

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cod

  • 0.6.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Some people, when confronted with a problem, think "I know, I'll use multithreading". Nothhw tpe yawrve o oblems.[1]

Don't use threads, use processes. This is the toolkit for interprocess communication that makes it real simple. A good place to start is the documentation for the Cod module.

SYNOPSIS

pipe = Cod.pipe

You can use those either directly:

pipe.put :some_ruby_object # Process A pipe.get # => :some_ruby_object # Process B

Or use them as bricks for more:

service = beanstalk.service client = beanstalk.client(pipe)

service.one { |msg| :response } # Process A client.call :ruby_object # => :response # Process B

STATUS

Working library. Some rough edges and potential for growth. Have a look at the Cod module to get started.

Working transports include:

  • process (spawn, connecting to $stdout and $stdin)
  • stdio (connects to $stdout and $stdin of current process)
  • pipe (akin to IO.pipe)
  • tcp (server and client)
  • beanstalk (connects to beanstalkd)

At version 0.5.0

(c) 2011 Kaspar Schiess

[1] https://twitter.com/rogerbraun/status/160813717502705664

FAQs

Package last updated on 23 Sep 2014

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