
love.forte.simbot.annotation.Async Maven / Gradle / Ivy
/*
*
* * Copyright (c) 2021. ForteScarlet All rights reserved.
* * Project simple-robot
* * File MiraiAvatar.kt
* *
* * You can contact the author through the following channels:
* * github https://github.com/ForteScarlet
* * gitee https://gitee.com/ForteScarlet
* * email [email protected]
* * QQ 1149159218
*
*/
package love.forte.simbot.annotation;
import java.lang.annotation.*;
/**
* 标记一个监听函数为 异步 函数。
*
* 当一个监听函数被标记为异步,则此函数的执行不会被用作对于 {@link SpareListen 备用监听} 的计数判断,
* 也无法通过 {@link ListenBreak 监听阻断} 来阻断其他监听函数。
*
* @author ForteScarlet
* @see love.forte.simbot.listener.ListenerFunction
*
* @since 2.3.0
*/
@Retention(RetentionPolicy.RUNTIME) //注解会在class字节码文件中存在,在运行时可以通过反射获取到
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE}) //接口、类、枚举、注解、方法
@Documented
public @interface Async {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy