Rxjs Retry with Delay function

前端 未结 10 2368
忘了有多久
忘了有多久 2020-11-30 06:32

I am trying to use retry with delay function, I expect function will call after 1000ms delay, but it doesnot, what can be error here? look at conso

10条回答
  •  一向
    一向 (楼主)
    2020-11-30 07:05

    To add on to @JB Nizet's answer. If you're writing this in rxjs 5+ with lettable operators, structure it as

    retryWhen(errors => errors.pipe(delay(1000), take(5)))

提交回复
热议问题