MyGit

v0.7.3

puniverse/quasar

版本发布时间: 2015-08-28 18:42:10

puniverse/quasar最新发布版本:v0.8.0(2018-11-03 02:13:29)

Breaking changes

New features

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
)

Improvements

Closed issues:

相关地址:原始地址 下载(tar) 下载(zip)

查看:2015-08-28发行的版本