Skip to content

Commit be6f880

Browse files
Fix mistake in README.md
1 parent cc958a7 commit be6f880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ In the respective unit test, we have to pass the testDispatcher to the ViewModel
165165
### 11. Cooperative cancellation
166166

167167
UseCase#10 has a problem. It is not able to prematurely cancel the calculation because it is not cooperative regarding cancellation. This leads to wasted device resources and
168-
memory leaks, as the calculation is not stopped and ViewModel is retained longer than necessary. This use case now fixes this issue. The UI now also has a "Cancel Calculation"
168+
memory leaks, as the calculation is not stopped and the ViewModel is retained longer than necessary. This use case now fixes this issue. The UI now also has a "Cancel Calculation"
169169
Button. Note: Only the calculation can be cancelled prematurely but not the `toString()` conversion.
170170

171171
There are several ways to make your coroutines cooperative regarding cancellation: You can use either use `isActive()`, `ensureActive()` or `yield()`.

0 commit comments

Comments
 (0)