Skip to content

yandzee/paradox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paradox Go Reference

A set of time related utilities.

Clock

This packages provides a missing Clock interface that can be used to decouple program from a real clock functions and thus make entire code testable.

See this example of its real world usage.

Retrier

Provides extensible Retrier entity, allowing to improve resilience in a program. What makes this implementation special is its simple interface and extensibility in terms of backoff, decider and clock abstractions that are used under the hood.

Out of order delay

Another special feature is the ability to run retriable code with custom logic of picking delay time between retries. It may seem like a pretty rare case, but if you got into that, this DoManual function can make your handling code much more cleaner.

About

Time related utilities written in Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages