Skip to content

Commit

Permalink
Update coroutines.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex009 committed Jul 31, 2023
1 parent 4d04d5c commit d4bcfdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions learning/libraries/kotlinx/coroutines.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ fun startTimer() {

Вывод - вызов `delay` не останавливает работу потока.

Более детальное сравнение `delay` и `Thread.sleep` можете прочитать в [статье](https://blog.shreyaspatil.dev/sleepless-concurrency-delay-vs-threadsleep)

### Механика отмены канала

Для закрытия канала используется метод close()
Expand Down

0 comments on commit d4bcfdb

Please sign in to comment.