Skip to content

Commit 7cbdfa3

Browse files
committed
updated version in README + phrase abotu handling channel and done.channel in one select.
1 parent 245a05d commit 7cbdfa3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
### Dependences:
66

7-
For scala 3.0.0-RC3:
7+
For scala 3:
88

9-
libraryDependencies += "com.github.rssh" %% "scala-gopher" % "2.0.1-RC3"
9+
libraryDependencies += "com.github.rssh" %% "scala-gopher" % "2.0.2"
1010

1111
For scala2:
1212

@@ -231,7 +231,7 @@ val multiplexed = select amap {
231231

232232
## Done signals.
233233

234-
Sometimes it is useful to receive a message when some `ReadChannel` becomes closed. Exists way to receive close notification in selector using `done` pseudo-channel, which is available for each 'normal' channel. When channel is closed, all readers of done channels receive notifications.
234+
Sometimes it is useful to receive a message when some `ReadChannel` becomes closed. Exists a way to receive close notification in selector using `done` pseudo-channel, which is available for each 'normal' channel. When the channel is closed, all readers of done channels receive notifications.
235235

236236
~~~ scala
237237
while(!done)
@@ -242,6 +242,8 @@ val multiplexed = select amap {
242242
}
243243
~~~
244244

245+
Note, that if we query some channel and it's done channel in the same select, and done channel is not aliased in some vairable, then done handler will be called first after channel close.
246+
245247

246248
# References:
247249
----------------------

0 commit comments

Comments
 (0)