Skip to content

Instantly share code, notes, and snippets.

@kiarashvosough1999
Created September 8, 2022 17:21
Show Gist options
  • Save kiarashvosough1999/124d255b1bcc3475d4385b3a336d1dad to your computer and use it in GitHub Desktop.
Save kiarashvosough1999/124d255b1bcc3475d4385b3a336d1dad to your computer and use it in GitHub Desktop.
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