reactorkit/weakmaptable
A weak-to-strong map table. It is inspired by [`NSMapTable`](https://developer.apple.com/documentation/foundation/nsmaptable) but **guarantees thread safety** and **deals better with weak references**. [`NSMapTable.weakToStrongObjects()`](https://developer.apple.com/documentation
APIs
public func value(forKey key: Key) -> Value?
public func value(forKey key: Key, default: @autoclosure () -> Value) -> Value
public func forceCastedValue<T>(forKey key: Key, default: @autoclosure () -> T) -> T
public func setValue(_ value: Value?, forKey key: Key)Installation
Podfile
pod 'WeakMapTable'License
WeakMapTable is under MIT license. See the LICENSE file for more info.
Package Metadata
Repository: reactorkit/weakmaptable
Default branch: master
README: README.md