Skip to content

Commit 044882f

Browse files
authored
Update README.md
1 parent b326e48 commit 044882f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ struct DemoView: View {
201201

202202
@MainActor func loadNumbers() {
203203
$numbers.load {
204-
try await Task.sleep(for: .seconds(2))
204+
try await Task.sleep(for: .seconds(2))
205205
return [0, 1, 2, 42, 73]
206206
}
207207
}
@@ -242,7 +242,7 @@ You simply have to conform your class to the `LoadableSupport` protocol that imp
242242
func loadNumbers() {
243243
// Call the load method from the LoadableSupport protocol
244244
load(\.numbers) {
245-
try await Task.sleep(for: .seconds(2))
245+
try await Task.sleep(for: .seconds(2))
246246
return [0, 1, 2, 42, 73]
247247
}
248248
}

0 commit comments

Comments
 (0)