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: AsyncMux/Sources/Multiplexer.swift
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@
8
8
import Foundation
9
9
10
10
11
-
privateletdefaultTTL:TimeInterval=30*60
12
-
privateletmuxRootDomain="_Root.Domain"
11
+
privateletDefaultTTL:TimeInterval=30*60
12
+
privateletMuxRootDomain="_Root.Domain"
13
13
14
14
@globalActor
15
15
publicactorMuxActor{
@@ -49,7 +49,7 @@ public final class Multiplexer<T: Codable & Sendable>: MuxRepositoryProtocol {
49
49
50
50
/// Performs a request either by calling the `onFetch` block supplied in the multiplexer's constructor, or by returning the previously cached object, if available. Multiple simultaneous calls to `request()` are handled by the Multiplexer so that only one `onFetch` operation can be invoked at a time, but all callers of `request()` will eventually receive the result.
/// "Soft" refresh: the next call to `request()` will attempt to retrieve the object again, without discarding the caches in case of a failure. `refresh()` does not have an immediate effect on any ongoing asynchronous requests. Can be chained with the subsequent `request()`.
@@ -65,7 +65,7 @@ public final class Multiplexer<T: Codable & Sendable>: MuxRepositoryProtocol {
0 commit comments