AL
Size: a a a
AL
i
i
AL
AN
i
Только надо помнить, что вся информация до момента подписки подписчиком теряется
i
AL
AN
Только надо помнить, что вся информация до момента подписки подписчиком теряется
AN
i
AK
(1..params.packetCount)
.asFlow()
.flatMapMerge {
flow {
log.debug("Generating packet with params = {}", params.something)
val packet = getPacket()
emit(packet)
}.flowOn(Dispatchers.Default)
}
.collect {
log.debug("Writing packet = {} to file = {}", it, file)
}
AK
BP
BP
AN
BP
Error:(932, 21) Kotlin: Type mismatch: inferred type is () -> Unit but (Node) -> Unit was expected
Error:(932, 36) Kotlin: Unresolved reference: it
AN
Error:(932, 21) Kotlin: Type mismatch: inferred type is () -> Unit but (Node) -> Unit was expected
Error:(932, 36) Kotlin: Unresolved reference: it
BP
val attach: (Node) -> Unit = if (parent is BorderPane) {
when (this) {
parent.top -> {
{ parent.top = it }
}
parent.right -> {
{ parent.right = it }
}
parent.bottom -> {
{ parent.bottom = it }
}
parent.left -> {
{ parent.left = it }
}
parent.center -> {
{ parent.center = it }
}
else -> {
{ throw IllegalStateException("Child of BorderPane not found in BorderPane") }
}
}
} else {
val children = parent.children
val index = children.indexOf(this);
{ children.add(index, it) }
}
BP