Implementing Exponential Backoff Retry in TypeScript

How to do retry with exponential backoff? I'm currently writing his
Effect.retry(Schedule.addDelay(Schedule.recurs(3), () => '2000 millis')),


How can I make this exponential?
I tried Schedule.exponential("10 millis"), but the type signatures don't seem to match
Was this page helpful?