suppressed experimental warnings

This commit is contained in:
nathan 2020-09-19 22:07:38 +02:00
parent 7ae3762603
commit 04ca513cc3

View File

@ -356,6 +356,7 @@ open class Connection(connectionParameters: ConnectionParams<*>) {
preCloseAction()
// this always has to be on a new dispatch, otherwise we can have weird logic loops if we reconnect within a disconnect callback
@Suppress("EXPERIMENTAL_API_USAGE")
endPoint.actionDispatch.launch(start = CoroutineStart.UNDISPATCHED) {
// NOTE: UNDISPATCHED means that this coroutine will start as an event loop, instead of concurrently
// we want this behavior INSTEAD OF automatically starting this on a new thread.