Skip to content

Commit

Permalink
leaving statePublisher on WebSocketProvider isolated to the actor (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
heckj authored Jul 25, 2024
1 parent 8647e72 commit cd92048
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public final class WebSocketProvider: NetworkProvider {
///
/// The initial value provides the current state of the connecting in the WebSocket provider,
/// with updates published when the state changes.
public nonisolated lazy var statePublisher: AnyPublisher<WebSocketProviderState, Never> = _statePublisher
public lazy var statePublisher: AnyPublisher<WebSocketProviderState, Never> = _statePublisher
.removeDuplicates().eraseToAnyPublisher()

/// Creates a new instance of a WebSocket network provider with the configuration you provide.
Expand Down

0 comments on commit cd92048

Please sign in to comment.