more annotations to god of annotations

This commit is contained in:
InsanusMokrassar committed 2020-10-15 00:26:37 +06:00
1 parent f44174b5b3
commit f8a8808508
53 files changed
+227 -10

No files matched your search

@@ -9,13 +9,6 @@ import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.collect
import kotlinx.serialization.SerializationStrategy
private suspend fun DefaultWebSocketSession.checkReceivedAndCloseIfExists() {
if (incoming.poll() != null) {
close()
throw CorrectCloseException
}
}
fun <T> Route.includeWebsocketHandling(
suburl: String,
flow: Flow<T>,