justinhoward/cutoff

Deadlines for Ruby

RubyShellrubydeadlinetimeout
This is stars and forks stats for /justinhoward/cutoff repository. As of 03 May, 2024 this repository has 153 stars and 3 forks.

Cutoff A deadlines library for Ruby inspired by Shopify and Kir Shatrov's blog series. Cutoff.wrap(5) do sleep(4) Cutoff.checkpoint! # still have time left sleep(2) Cutoff.checkpoint! # raises an error end It has built-in patches for Mysql2 and Net::HTTP to auto-insert checkpoints and timeouts. require 'cutoff/patch/mysql2' client = Mysql2::Client.new Cutoff.wrap(5) do client.query('SELECT * FROM dual WHERE sleep(2)') # Cutoff will automatically insert a /*+ MAX_EXECUTION_TIME(3000) */ ...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
rouge-ruby/rougeRubysedTypeScript3.2k+17360
zu1k/good-mitmRustShellMakefile7040990
open-contracting/deploySaltStackShellPython2030
agkozak/zsh-zShell1.7k0730
os2xx/osTeXMakefileHTML50100
ARC-Lab-UF/intel-training-modulesSystemVerilogC++Tcl220120
google/silifuzzC++StarlarkAssembly3450190
tsukumijima/Real-ESRGAN-GUIDartC++CMake3660220
cloudnative-pg/pgbouncer-containersDockerfileShell5010
exercism/elixir-representerElixirDockerfileShell10060