Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Dec 30, 2024
1 parent f42aa1e commit 30af707
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ interact with the outside world. This way you can be sure that while the user is
the tutorial sandbox they are not accidentally making network requests, saving data to disk or
overwriting settings in user defaults.

> Note: The method ``withDependencies(from:_:operation:file:line:)-262kg`` used in the code snippet
> above is subtly different from ``withDependencies(_:operation:)``. It takes an extra
> Note: The method ``withDependencies(from:operation:fileID:filePath:line:column:)`` used in the
> code snippet above is subtly different from ``withDependencies(_:operation:)``. It takes an extra
> argument, `from`, which is the object from which we propagate the dependencies before overriding
> some. This allows you to propagate dependencies from object to object.
>
Expand Down
3 changes: 2 additions & 1 deletion Sources/Dependencies/Documentation.docc/Articles/Testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ the date is "Feb 13, 2009 at 3:31 PM".
> models inside its methods, then it has to be careful about how it does so. In order for
> `FeatureModel`'s dependencies to propagate to the new child model, it must construct the child
> model in an altered execution context that passes along the dependencies. The tool for this is
> ``withDependencies(from:operation:file:line:)-2qx0c`` and can be used simply like this:
> ``withDependencies(from:operation:fileID:filePath:line:column:)`` and can be used simply like
> this:
>
> ```swift
> @Observable
Expand Down
6 changes: 0 additions & 6 deletions Sources/Dependencies/Documentation.docc/Dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,3 @@ This library addresses all of the points above, and much, _much_ more.
- ``DependencyValues``
- ``DependencyKey``
- ``DependencyContext``

### Concurrency support

- ``ActorIsolated``
- ``LockIsolated``
- ``UncheckedSendable``
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ``Dependencies/withDependencies(_:operation:)-4uz6m``
# ``Dependencies/withDependencies(_:operation:)``

## Topics

### Overloads

- ``withDependencies(_:operation:)``
- ``withDependencies(isolation:_:operation:)``

0 comments on commit 30af707

Please sign in to comment.