File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import Foundation
77import StreamWebRTC
88import SwiftProtobuf
99
10- public typealias UserTokenProvider = @Sendable ( @Sendable @escaping ( Result < UserToken , Error > ) -> Void ) -> Void
10+ public typealias UserTokenProvider = @Sendable ( @Sendable @escaping ( Result < UserToken , Error > ) -> Void ) -> Void
1111public typealias UserTokenUpdater = @Sendable ( UserToken ) -> Void
1212
1313/// Main class for interacting with the `StreamVideo` SDK.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import Foundation
77/// The type that does events batching.
88protocol EventBatcher : Sendable {
99 typealias Batch = [ WrappedEvent ]
10- typealias BatchHandler = @Sendable ( _ batch: Batch , _ completion: @Sendable @escaping ( ) -> Void ) -> Void
10+ typealias BatchHandler = @Sendable ( _ batch: Batch , _ completion: @Sendable @escaping ( ) -> Void ) -> Void
1111
1212 /// The current batch of events.
1313 var currentBatch : Batch { get }
@@ -35,7 +35,7 @@ final class Batcher<Item> {
3535 /// The timer that calls `processor` when fired.
3636 private var batchProcessingTimer : TimerControl ?
3737 /// The closure which processes the batch.
38- private let handler : @Sendable ( _ batch: [ Item ] , _ completion: @Sendable @escaping ( ) -> Void ) -> Void
38+ private let handler : @Sendable ( _ batch: [ Item ] , _ completion: @Sendable @escaping ( ) -> Void ) -> Void
3939 /// The serial queue where item appends and batch processing is happening on.
4040 private let queue = DispatchQueue ( label: " io.getstream.Batch. \( Item . self) " )
4141 /// The current batch of items.
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ import protocol StreamVideo.Timer
99final class EventBatcher_Mock : EventBatcher , @unchecked Sendable {
1010 var currentBatch : [ WrappedEvent ] = [ ]
1111
12- let handler : @Sendable ( _ batch: [ WrappedEvent ] , _ completion: @escaping @Sendable ( ) -> Void ) -> Void
12+ let handler : @Sendable ( _ batch: [ WrappedEvent ] , _ completion: @escaping @Sendable ( ) -> Void ) -> Void
1313
1414 init (
1515 period: TimeInterval = 0 ,
1616 timerType: Timer . Type = DefaultTimer . self,
17- handler: @escaping @Sendable ( _ batch: [ WrappedEvent ] , _ completion: @escaping @Sendable ( ) -> Void ) -> Void
17+ handler: @escaping @Sendable ( _ batch: [ WrappedEvent ] , _ completion: @escaping @Sendable ( ) -> Void ) -> Void
1818 ) {
1919 self . handler = handler
2020 }
You can’t perform that action at this time.
0 commit comments