Convert to release coroutines (kotlinx-coroutines.1.0.1)

This commit is contained in:
Ilya Chernikov
2018-11-15 13:37:29 +01:00
parent 89ba7a7ae8
commit c05c46d50f
8 changed files with 18 additions and 17 deletions
@@ -16,7 +16,8 @@
package org.jetbrains.kotlin.idea.completion
import kotlinx.coroutines.channels.ConflatedChannel
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.channels.Channel.Factory.CONFLATED
import java.lang.System.currentTimeMillis
@@ -48,7 +49,7 @@ interface CompletionBenchmarkSink {
class Impl : CompletionBenchmarkSink {
private val pendingSessions = mutableListOf<CompletionSession>()
val channel = ConflatedChannel<CompletionBenchmarkResults>()
val channel = Channel<CompletionBenchmarkResults>(capacity = CONFLATED)
private val perSessionResults = LinkedHashMap<CompletionSession, PerSessionResults>()
private var start: Long = 0