minus-squareDanielRosenwasserOPtoProgramming•Announcing TypeScript 5.2 BetalinkfedilinkEnglisharrow-up1·1 year ago Though naming the disposable that you never use is a little weird. Usually you will use the disposable value, as it’ll have some other methods. In cases where you don’t, it’s often for something like locking/unlocking a resource. linkfedilink
DanielRosenwasser to ProgrammingEnglish · 1 year agoAnnouncing TypeScript 5.2 Betaplus-squaredevblogs.microsoft.comexternal-linkmessage-square2fedilinkarrow-up123arrow-down12
arrow-up121arrow-down1external-linkAnnouncing TypeScript 5.2 Betaplus-squaredevblogs.microsoft.comDanielRosenwasser to ProgrammingEnglish · 1 year agomessage-square2fedilink
Usually you will use the disposable value, as it’ll have some other methods. In cases where you don’t, it’s often for something like locking/unlocking a resource.