03:17 | <HE Shi-Jun> | I don't understand the highlighted part (double "link"), is that a typo? |
03:58 | <rkirsling> | it surely is |
21:27 | <bakkot> | has there been a proposal for a Promise.prototype.settled() ? Implementation function(){ return this.then(value => ({ status: 'fulfilled', value }), reason => ({ status: 'rejected', reason });) |
21:27 | <bakkot> | like allSettled but for a single promise |
21:27 | <bakkot> | I seem to recall someone bringing this up but couldn't find it |
21:44 | <ljharb> | I haven’t seen any proposal for it being async - that seems perfectly reasonable to me. The past ones i recall are for something sync, which have obvious issues. |
21:57 | <bakkot> | I'm not sure what "sync" would even mean in this context |
21:57 | <bakkot> | unless you mean it would let you synchronously get the promise's status? yeah definitely not that |