4. Retry with Delay
1const unstable = () => {2 if (Math.random() < 0.7) throw new Error('Fail');3 return 'Success';4};6const reliable = FunctionWrapper.retry(unstable, 5, 100);7reliable().then(console.log).catch(console.error);