Skip to content

Commit 89e9bab

Browse files
update docs
1 parent 258703b commit 89e9bab

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Sources/Swiftmapper/Docs.docc/Creating-Maps.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,4 @@ The initializer ``MapperMap/init(from:to:)-(GenericSignal,_)`` lets you create a
4646
### Map Ownership
4747
4848
Since maps are not "owned" by any single device, this presents challenges with the automatic resource management provided by Swiftmapper's wrappers. By default any 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 as unowned, 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

Comments
 (0)