Skip to content
Sections
>> Trisquel >> 软件包 >> nabia >> ruby >> ruby-retryable
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: ruby-retryable  ]

软件包: ruby-retryable (2.0.4-1)

module that allows one to retry a code block

Runs a code block, and retries it when an exception occurs. It's great when working with flakey webservices (for example).

It's configured using four optional parameters :tries, :on, :sleep, :matching, :ensure, :exception_cb and runs the passed block. Should an exception occur, it'll retry for (n-1) times.

Should the number of retries be reached without success, the last exception will be raised.

其他与 ruby-retryable 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: ruby
    Interpreter of object-oriented scripting language Ruby (default version)
    或者 ruby-interpreter
    软件包暂时不可用

下载 ruby-retryable

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 6.9 kB28 kB [文件列表]