摘要: type Twitter = { tweets: number} type Instagram = {canFollow: boolean} function describeAccount(account: Twitter | Instagram) { if (account.tweets) { 阅读全文
posted @ 2022-03-30 15:26 Zhentiw 阅读(48) 评论(0) 推荐(0)
摘要: src$.pipe( retryWhen(error$ => error$.pipe( switchMap(getNotifier) )) ) // can just be src$.pipe( retry({ delay: getNotifier }) ) /** * The {@link ret 阅读全文
posted @ 2022-03-30 15:21 Zhentiw 阅读(123) 评论(0) 推荐(0)
摘要: // ❎ const object = {} object[key] = value // 👍 better performance const map = new Map() map.set(key, value) 阅读全文
posted @ 2022-03-30 15:10 Zhentiw 阅读(63) 评论(0) 推荐(0)
摘要: High availability and elastic scalaility for web servers? Use EC2 Auto Scaling and an ALB across Multi AZs Low-latency connections over UDP to a pool 阅读全文
posted @ 2022-03-30 02:54 Zhentiw 阅读(57) 评论(0) 推荐(0)