package com.remax.visualnovel.extension

import kotlinx.coroutines.CancellableContinuation
import kotlin.coroutines.resume

/**
 * Created by HJW on 2023/7/14
 */

fun <T> CancellableContinuation<T>.resumeWithActive(value: T) {
    if (isActive) {
        resume(value)
    }
}