Skip to content

Commit f9facaf

Browse files
committed
Update README.md
1 parent f88f943 commit f9facaf

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@
2020
```
2121

2222
### 3. Call ViewModel method start() within async environment
23+
If task will be canceled the streamimg stops automaticaly
2324

2425
```
25-
Task{
26-
do{
27-
try await viewModel.start()
28-
}catch{
29-
self.error = error.localizedDescription
30-
}
31-
}
26+
Task{
27+
do{
28+
try await viewModel.start()
29+
}catch{
30+
self.error = error.localizedDescription
31+
}
32+
}
3233
```
3334

3435
### 4. Bake async stream of data from "locations" into a visual presentation

0 commit comments

Comments
 (0)