All files / src/hof resilientTimed.js

0% Statements 0/1
100% Branches 0/0
0% Functions 0/1
0% Lines 0/1
1 2 3 4 5 6 7 8 9 10                   
import resilient from 'hof/resilient';
import timed from 'hof/timed';
 
// convenience composition of resilient, timed function - the function will time out
// after the given timeout, but will retry itself attempts times. The same
// config will be passed to both the timed and resilient functions.
export default function resilientTimed(asyncFn, config) {
	return resilient(timed(asyncFn, config), config);
}