Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftedMind authored Sep 19, 2023
1 parent b326e48 commit 044882f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ struct DemoView: View {

@MainActor func loadNumbers() {
$numbers.load {
try await Task.sleep(for: .seconds(2))
try await Task.sleep(for: .seconds(2))
return [0, 1, 2, 42, 73]
}
}
Expand Down Expand Up @@ -242,7 +242,7 @@ You simply have to conform your class to the `LoadableSupport` protocol that imp
func loadNumbers() {
// Call the load method from the LoadableSupport protocol
load(\.numbers) {
try await Task.sleep(for: .seconds(2))
try await Task.sleep(for: .seconds(2))
return [0, 1, 2, 42, 73]
}
}
Expand Down

0 comments on commit 044882f

Please sign in to comment.