rsocket / rsocket-kotlin

RSocket Kotlin multi-platform implementation
http://rsocket.io
Apache License 2.0
552 stars 37 forks source link

Error with elapsedNow in snapshot #91

Closed yschimke closed 4 years ago

yschimke commented 4 years ago

Repro

./rsocket-cli --route searchTweets -i Trump wss://rsocket-demo.herokuapp.com/rsocket

After some time

Exception in thread "main" java.lang.NoSuchMethodError: 'double kotlin.time.TimeMark.elapsedNow()'
    at io.rsocket.kotlin.keepalive.KeepAliveHandler$startIn$1.invokeSuspend(KeepAliveHandler.kt:46)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Similar to https://github.com/InsertKoinIO/koin/pull/873/files