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

com.skillw.asahi.api.member.quest.Quester.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.asahi.api.member.quest

import com.skillw.asahi.api.member.context.AsahiContext

fun interface Quester {

    /**
     * 在上下文中执行/获取
     *
     * @return R
     * @receiver AsahiContext
     */
    fun AsahiContext.execute(): R

    fun run(context: AsahiContext): R {
        return context.run { execute() }
    }

    fun get(context: AsahiContext): R {
        return context.execute()
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy