Skip to content

Actor ignores thrown exceptions #368

Closed
@qwwdfsad

Description

@qwwdfsad
fun main(args: Array<String>) = runBlocking<Unit> {

    val parent = Job()
    val actor = kotlinx.coroutines.experimental.channels.actor<Int>(parent = parent) {
        channel.consumeEach {
          throw IllegalArgumentException()
        }
    }

    actor.send(1)
    parent.join()
}

Will silently hang

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions