Skip to content

Commit 6a94b35

Browse files
committed
Remove isolation parameter from docs
Signed-off-by: Adam Fowler <[email protected]>
1 parent e6d1026 commit 6a94b35

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

Sources/Valkey/Subscriptions/ValkeyClient+subscribe.swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ extension ValkeyClient {
2525
///
2626
/// - Parameters:
2727
/// - channels: list of channels to subscribe to
28-
/// - isolation: Actor isolation
2928
/// - process: Closure that is called with subscription async sequence
3029
/// - Returns: Return value of closure
3130
@inlinable
@@ -46,7 +45,6 @@ extension ValkeyClient {
4645
///
4746
/// - Parameters:
4847
/// - channels: list of channels to subscribe to
49-
/// - isolation: Actor isolation
5048
/// - process: Closure that is called with subscription async sequence
5149
/// - Returns: Return value of closure
5250
public func subscribe<Value>(
@@ -69,7 +67,6 @@ extension ValkeyClient {
6967
///
7068
/// - Parameters:
7169
/// - patterns: list of channel patterns to subscribe to
72-
/// - isolation: Actor isolation
7370
/// - process: Closure that is called with subscription async sequence
7471
/// - Returns: Return value of closure
7572
@inlinable
@@ -89,7 +86,6 @@ extension ValkeyClient {
8986
///
9087
/// - Parameters:
9188
/// - patterns: list of channel patterns to subscribe to
92-
/// - isolation: Actor isolation
9389
/// - process: Closure that is called with subscription async sequence
9490
/// - Returns: Return value of closure
9591
@inlinable
@@ -112,8 +108,7 @@ extension ValkeyClient {
112108
/// pattern
113109
///
114110
/// - Parameters:
115-
/// - shardchannel: list of shard channels to subscribe to
116-
/// - isolation: Actor isolation
111+
/// - shardchannels: list of shard channels to subscribe to
117112
/// - process: Closure that is called with subscription async sequence
118113
/// - Returns: Return value of closure
119114
@inlinable
@@ -132,8 +127,7 @@ extension ValkeyClient {
132127
/// pattern
133128
///
134129
/// - Parameters:
135-
/// - shardchannel: list of shard channels to subscribe to
136-
/// - isolation: Actor isolation
130+
/// - shardchannels: list of shard channels to subscribe to
137131
/// - process: Closure that is called with subscription async sequence
138132
/// - Returns: Return value of closure
139133
@inlinable

Sources/Valkey/Subscriptions/ValkeyConnection+subscribe.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,17 @@ extension ValkeyConnection {
118118
/// pattern
119119
///
120120
/// - Parameters:
121-
/// - shardchannel: list of shard channels to subscribe to
121+
/// - shardchannels: list of shard channels to subscribe to
122122
/// - isolation: Actor isolation
123123
/// - process: Closure that is called with subscription async sequence
124124
/// - Returns: Return value of closure
125125
@inlinable
126126
public func ssubscribe<Value>(
127-
to shardchannel: String...,
127+
to shardchannels: String...,
128128
isolation: isolated (any Actor)? = #isolation,
129129
process: (ValkeySubscription) async throws -> sending Value
130130
) async throws -> sending Value {
131-
try await self.ssubscribe(to: shardchannel, process: process)
131+
try await self.ssubscribe(to: shardchannels, process: process)
132132
}
133133

134134
/// Subscribe to list of shard channels and run closure with subscription
@@ -139,19 +139,19 @@ extension ValkeyConnection {
139139
/// pattern
140140
///
141141
/// - Parameters:
142-
/// - shardchannel: list of shard channels to subscribe to
142+
/// - shardchannels: list of shard channels to subscribe to
143143
/// - isolation: Actor isolation
144144
/// - process: Closure that is called with subscription async sequence
145145
/// - Returns: Return value of closure
146146
@inlinable
147147
public func ssubscribe<Value>(
148-
to shardchannel: [String],
148+
to shardchannels: [String],
149149
isolation: isolated (any Actor)? = #isolation,
150150
process: (ValkeySubscription) async throws -> sending Value
151151
) async throws -> sending Value {
152152
try await self.subscribe(
153-
command: SSUBSCRIBE(shardchannels: shardchannel),
154-
filters: shardchannel.map { .shardChannel($0) },
153+
command: SSUBSCRIBE(shardchannels: shardchannels),
154+
filters: shardchannels.map { .shardChannel($0) },
155155
isolation: isolation,
156156
process: process
157157
)

0 commit comments

Comments
 (0)