acando86
04/12/2019, 9:12 PMkotlinx.coroutines 1.2.0
:
Warning: kotlinx.atomicfu.AtomicFU: can't find referenced method 'void setInterceptor(kotlinx.atomicfu.AtomicOperationInterceptor)' in program class kotlinx.atomicfu.InterceptorKt
Proguard is configured as per kotlinx-coroutines-core/resources/META-INF/proguard/coroutines.pro
. I can easily solve this warning by adding a rule to keep the corresponding atomicfu class and its methods, but i was wondering whether it's safe to -dontwarn
it. I have no warnings when using v1.1.1. Anyone experiencing a similar issue?sdeleuze
04/13/2019, 7:16 AMCould not resolve all files for configuration ':kofu-coroutines-mongodb:compileClasspath'.
> Could not find org.jetbrains.kotlinx:atomicfu:0.12.3.
Required by:
project :kofu-coroutines-mongodb > org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.0
> Could not find org.jetbrains.kotlinx:atomicfu-common:0.12.3.
Required by:
project :kofu-coroutines-mongodb > org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.0
It seems indeed missing from Maven Central https://search.maven.org/search?q=a:atomicfu
Could you publish it ?Paul Woitaschek
04/13/2019, 8:54 AMPaul Woitaschek
04/13/2019, 12:11 PMio.reactivex.Observable.asFlow
?Paul Woitaschek
04/13/2019, 2:22 PMpavel.v
04/14/2019, 9:09 AMpakoito
04/14/2019, 9:20 AMsuspend fun PeerConnectionFactory.createPeerConnection
??halim
04/14/2019, 12:36 PMoshai
04/14/2019, 12:49 PM1.2.0
? Is there a flag to enable it?JoakimForslund
04/15/2019, 9:36 AMbasher
04/15/2019, 4:27 PMtseisel
04/15/2019, 6:26 PMflowViaChannel(bufferSize = Channel.CONFLATED) { ... }
throws an IllegalArgumentException
due to Channel.CONFLATED
constant value being less than 0.
Is it the intended behavior ? The documentation for this function highlights that Channel.CONFLATED
would be an accepted value : https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/flow-via-channel.htmlRobert Jaros
04/15/2019, 6:52 PMFlow
just like we can iterate over ReceiveChannel
?Robert Jaros
04/15/2019, 6:59 PM.send
on the one side and iterate when reading on the other side, but at the same time I need to transform the data using map
and filter
, which are obsolete for channels.ansman
04/15/2019, 10:17 PMwithTimeoutOrNull(100) {
suspendCoroutine<Unit> { cont ->
(context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager)
.hideSoftInputFromWindow(windowToken, 0, object : ResultReceiver(handler) {
override fun onReceiveResult(resultCode: Int, resultData: Bundle?) {
cont.resume(Unit)
}
})
}
}
octylFractal
04/16/2019, 2:33 AMSelectClause0.registerSelectClause0
& friends non-internal API? I want to write my own low-level primitive with select clauses available, but I don't want to touch the internalsnapperley
04/16/2019, 4:31 AMchansek
04/16/2019, 10:31 AMchansek
04/16/2019, 10:33 AMbenny.huo
04/16/2019, 11:31 PMjoin
function:spierce7
04/17/2019, 5:04 AMReceiveChannel
, is there a way for me to turn it into a Flow
?ansman
04/17/2019, 1:50 PMMutex
?addamsson
04/17/2019, 3:04 PMhalim
04/18/2019, 11:47 AMsuspend fun ServerSocket.listening() = suspendCancellableCoroutine<Socket>{
it.invokeOnClancellation { println("coroutine is cancelling...."); close() }
it.resueWith(Result.success(accpet())
}
fun main() = runBlocking() {
withTimeout(3000) {
val socket = ServerSocket(4000).run { listening() }
}
}
i expected to cancel after 3 sec but not think happen, server still listening and wait for client to connect
why suspendCancellableCoroutine not cancelled ?? any ideamben
04/18/2019, 1:29 PMDias
04/19/2019, 9:20 AMlittlelightcz
04/19/2019, 4:11 PMinternal object NullSurrogate
. Is such thing really reasonably needed? I thought that Kotlin can handle nulls pretty well already 🙂pakoito
04/19/2019, 4:34 PMkevin.cianfarini
04/19/2019, 10:05 PMserebit
04/19/2019, 10:40 PMserebit
04/19/2019, 10:40 PMoctylFractal
04/19/2019, 10:41 PMserebit
04/19/2019, 10:41 PMoctylFractal
04/19/2019, 10:42 PMChannel
that's constructed manually isn't really a producerserebit
04/19/2019, 10:45 PMoctylFractal
04/19/2019, 10:46 PM