97 Members
Node.js is a JavaScript runtime | https://nodejs.org/ | ✨ 🐢 🚀 ✨ | Mission statement: http://bit.ly/28Ix9uj35 Servers

Load older messages

20 Aug 2020
@kenobi:utwente.iokenobi 21:29:43
21 Aug 2020

Anybody experience with retry logic in JS?
I started by writing a recursive function but realized this wouldn't be a good idea since my retry logic happens when a user goes offline so they can hit the recursion limit after a while. Thoughts on that?

This is what I came up with now: https://gist.github.com/Siilwyn/3c9ef4c728a53b106c59ceca35a2f0dc
It's basically a while loop using await on a promise that only resolves once we need to retry.
Anybody knows a nicer abstraction perhaps?

22 Aug 2020
@tim:schumacher.imTimwhen dealing with events and such, there is always rxjs 😉: https://www.learnrxjs.io/learn-rxjs/operators/error_handling/retrywhen07:05:42
@Siilwyn:matrix.orgSiilwynI'd rather use a small package or write it myself I think in this case rxjs is a bit of a heavy solution.09:26:20
@Siilwyn:matrix.orgSiilwynthanks for the reply though :)09:31:37
@karl:matrix.kiwifarms.netkarl 10:01:08
@tim:schumacher.imTim Yeah, I added the smiley because it was not a fully serious answer 10:38:47
@hans:netzgemeinde.euhans 17:02:41
@Siilwyn:matrix.orgSiilwynah ok! haha20:44:36
@jeremy:nitro.chatjeremy 21:46:34
@camila:poddery.comcamila 21:54:27
@jorge:halogen.cityjorge 22:55:05
23 Aug 2020
@kaito2:matrix.orgkaito2I prefer ixjs20:27:01
25 Aug 2020
@angela:feneas.organgela 20:25:26
26 Aug 2020
@keensky:matrix.orgkeensky joined the room.01:14:30
28 Aug 2020
@rysimpla:privacytools.iorysimpla joined the room.16:42:11
@rysimpla:privacytools.iorysimplaRedacted or Malformed Event16:46:23
29 Aug 2020
@mir:gemeinsam.jetzt@mir:gemeinsam.jetzt joined the room.10:40:20
@mir:gemeinsam.jetzt@mir:gemeinsam.jetzt left the room.10:41:34
@lactor:matrix.orglactor changed their profile picture.19:17:17
30 Aug 2020
@shaheen01427:matrix.orgshaheen joined the room.09:46:26
3 Sep 2020
@joaolvcm:matrix.orgJoaolvcmis there any lint or something to detect functions that are mutating the parameters object?15:55:06
4 Sep 2020
In reply to @joaolvcm:matrix.org
is there any lint or something to detect functions that are mutating the parameters object?
Do you mean something like this? https://eslint.org/docs/rules/no-param-reassign
8 Sep 2020
@caranmegil:matrix.chilli.socialcaranmegil joined the room.00:01:41
@jessehattabaugh:matrix.orgjessehattabaugh joined the room.02:04:02
11 Sep 2020
@mindranger:matrix.orgmindranger joined the room.12:39:34
13 Sep 2020
@caranmegil:matrix.chilli.socialcaranmegil left the room.22:44:39
16 Sep 2020
@nightwingman:matrix.orgnightwing changed their profile picture.15:55:25
17 Sep 2020
@marzipan:synod.im@marzipan:synod.im left the room.20:32:12
21 Sep 2020
@56440187569:matrix.org56440187569 joined the room.14:32:11

There are no newer messages yet.

Back to Room List