About 2 results
https://dev-stream.pckt.blog/til-join-over-dfm23ru · 23 Jan 2026
I discovered a neat pattern: using join with the function arrow ((->)) as a Monad. When you join over functions, you get: This lets you pass the same argument twice: once to determine what to do, and another to actually do it. In , we have validators with ...
https://dev-stream.pckt.blog/til-abortsignaltimeout-62fkgjz · 23 Jan 2026
For Promise timeouts, I was overworrying about doing setTimeouts with an AbortController, and cleaning them up afterwards to avoid memory leaks: The gods of JS smiled in my favor this week when I found out about AbortSignal.timeout (thanks to ). It simplif...