All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.bjoernpetersen.musicbot.api.loader.NoResource.kt Maven / Gradle / Ivy

There is a newer version: 0.25.0
Show newest version
package net.bjoernpetersen.musicbot.api.loader

import net.bjoernpetersen.musicbot.spi.loader.Resource

/**
 * A resource which actually isn't one. It is always valid and all methods are basically no-ops.
 */
object NoResource : Resource {

    override suspend fun free() = Unit
    override val isValid
        get() = true
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy