v0.7.3
版本发布时间: 2015-08-28 18:42:10
puniverse/quasar最新发布版本:v0.8.0(2018-11-03 02:13:29)
Breaking changes
- Kotlin's
fiber
function has been moved to theco.paralleluniverse.kotlin
package, has several convenient overloads and by default will also start the fiber.
New features
-
co.paralleluniverse.kotlin
also includes a convenientselect
syntax to perform channel selection:
val ch1 = Channels.newChannel<Int>(1)
val ch2 = Channels.newChannel<Int>(1)
assertTrue (
fiber {
select(Receive(ch1), Send(ch2, 2)) {
it
}
}.get() is Send
)
ch1.send(1)
assertTrue (
fiber {
select(Receive(ch1), Send(ch2, 2)) {
when (it) {
is Receive -> it.msg
is Send -> 0
else -> -1
}
}
}.get() == 1
)
- The new
FiberForkJoinScheduler.onIdle()
hook notifies when the fiber scheduler becomes idle.
Improvements
- Several dependencies upgraded
Closed issues:
- #111
- #110
- #109
- #108
- #106
- #104
- #102
- https://github.com/puniverse/quasar/commit/1f946ed13bfa7566eead39845c73c3787a75790a
- https://github.com/puniverse/quasar/commit/e755bf5
- https://github.com/puniverse/quasar/commit/0f65292b649b90050bbd85cee1b10b837c97d0dd
- https://github.com/puniverse/quasar/commit/6612b71e38af8db154aecc19f084bf3fc5376ae6