New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stud

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stud

  • 0.0.23
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Stud.

Ruby's stdlib is missing many things I use to solve most of my software problems. Things like like retrying on a failure, supervising workers, resource pools, etc.

In general, I started exploring solutions to these things in code over in my software-patterns repo. This library (stud) aims to be a well-tested, production-quality implementation of the patterns described in that repo.

For now, these all exist in a single repo because, so far, implementations of each 'pattern' are quite small by code size.

Features

  • {Stud::Try} (and {Stud.try}) - retry on failure, with back-off, where failure is any exception.
  • {Stud::Pool} - generic resource pools
  • {Stud::Task} - tasks (threads that can return values, exceptions, etc)
  • {Stud.interval} - interval execution (do X every N seconds)
  • {Stud::Buffer} - batch & flush behavior.

TODO:

  • Make sure all things are documented. rubydoc.info should be able to clearly show folks how to use features of this library.
  • Add tests to cover all supported features.

FAQs

Package last updated on 02 Aug 2017

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