minus-squareDanielRosenwasser@programming.devOPtoProgramming@programming.dev•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@programming.dev to Programming@programming.devEnglish · 1 year agoAnnouncing TypeScript 5.2 Betaplus-squaredevblogs.microsoft.comexternal-linkmessage-square2fedilinkarrow-up122arrow-down12
arrow-up120arrow-down1external-linkAnnouncing TypeScript 5.2 Betaplus-squaredevblogs.microsoft.comDanielRosenwasser@programming.dev to Programming@programming.devEnglish · 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.