Skip to content

Commit

Permalink
Update Sources/VSM/StateContainer/StateObserving.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Albert Bori <[email protected]>
  • Loading branch information
bdunay3 and albertbori authored Jun 16, 2024
1 parent dc6ec4c commit fedb6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/VSM/StateContainer/StateObserving.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public protocol StateObserving<State> {
/// - Parameter nextState: An async closure that returns the next state to render.
func observeAsync(_ nextState: @escaping () async -> State)

/// Calls an async closure that returns a asynchronous sequence states. Those states are rendered by the view in the order received.
/// Calls an async closure that returns an asynchronous sequence of states. Those states are rendered by the view in the order received.
/// - Parameter stateSequence: An async closure that returns a sequence of states.
func observeAsync<SomeAsyncSequence: AsyncSequence>(_ stateSequence: @escaping () async -> SomeAsyncSequence) where SomeAsyncSequence.Element == State

Expand Down

0 comments on commit fedb6b8

Please sign in to comment.