Skip to content

A Clojure library to adamantly (or stubbornly) try to run a function

License

Notifications You must be signed in to change notification settings

ska2342/adamant-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adamant-run

A Clojure library to adamantly (or stubbornly) try to run a function.

Motivation

This library shall help you run functions which may encounter errors or timeout with automated retries. Situations where this might be helpful contain communication with a remote service, which may be unavailable, or dealing with asynchronous file transfer, when you are waiting for a file to show up.

Usage

You can pass any clojure function to `adamant-run` along with its arguments and some finetuning options to control how adamant-run will run your function.

The easiest case is calling a function with no arguments using the defaults of `adamant-run`:

(adamant-run (fn [] "OK"))

The documentation of the function adamant-run contains a list of keyword options.

Inspiration

The whole idea for this project comes from Robert Bruce written by Joe Gallo. So, kudos to Joe for his nice interface!

License

Copyright (C) 2011 Stefan Kamphausen

Distributed under the Eclipse Public License, the same as Clojure. See file COPYING.

About

A Clojure library to adamantly (or stubbornly) try to run a function

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published