Created
September 8, 2022 17:21
-
-
Save kiarashvosough1999/124d255b1bcc3475d4385b3a336d1dad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let hashTable = NSHashTable<NSMutableData>(options: .copyIn) | |
var str: NSMutableData? = NSMutableData.init() | |
hashTable.add(str) | |
str = nil | |
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) { | |
print(hashTable.allObjects) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment