You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Swiftmapper/Docs.docc/Creating-Maps.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,4 @@ The initializer ``MapperMap/init(from:to:)-(GenericSignal,_)`` lets you create a
46
46
### Map Ownership
47
47
48
48
Since maps are not "owned" by any single device, this presents challenges with the automatic resource management provided by Swiftmapper's wrappers. By defaultany map you create locally will
49
-
be marked as owned, and will be deleted once the Swift object is deinitialized. This may not be desirable in many cases, and so you may use the method ``MapperMap/forget()`` to release ownership of the map.
50
-
51
-
``MapperMap`` references obtained by querying the graph are unowned by default, but you can take ownership of them via ``MapperMap/take()`` if you would like their lifetime to be bound to the wrapper object. Once the wrapper's reference count reaches zero and Swift calls `deinit` the map will be removed from the graph.
49
+
be marked asunowned, and will not be deleted once the Swift object is deinitialized. This may not be desirable in some cases, and so you may use the method ``MapperMap/take()`` to take ownership of the map.
0 commit comments