⁠
kyle wood: Fix up all duplicaate code warnings
Also messed up the ktlint configuration trying to upgrade it, but future
versions are still a broken mess. Sorry about that.
Also messed up the ktlint configuration trying to upgrade it, but future
versions are still a broken mess. Sorry about that.
- /*
- * Minecraft Dev for IntelliJ
- *
- * https://minecraftdev.org
- *
- * Copyright (c) 2023 minecraft-dev
- *
- * MIT License
- */
- package com.demonwav.mcdev.util
- import kotlinx.coroutines.CoroutineScope
- import kotlinx.coroutines.CoroutineStart
- import kotlinx.coroutines.Deferred
- import kotlinx.coroutines.Dispatchers
- import kotlinx.coroutines.async
- fun <T> CoroutineScope.asyncIO(
- start: CoroutineStart = CoroutineStart.DEFAULT,
- block: suspend CoroutineScope.() -> T
- ): Deferred<T> = async(Dispatchers.IO, start, block)
- /*
- * Minecraft Dev for IntelliJ
- *
- * https://minecraftdev.org
- *
- * Copyright (c) 2023 minecraft-dev
- *
- * MIT License
- */
- package com.demonwav.mcdev.util
- import kotlinx.coroutines.CoroutineScope
- import kotlinx.coroutines.CoroutineStart
- import kotlinx.coroutines.Deferred
- import kotlinx.coroutines.Dispatchers
- import kotlinx.coroutines.async
- fun <T> CoroutineScope.asyncIO(
- start: CoroutineStart = CoroutineStart.DEFAULT,
- block: suspend CoroutineScope.() -> T,
- ): Deferred<T> = async(Dispatchers.IO, start, block)