I DON'T KNOW

This commit is contained in:
jiahua.liu 2020-03-09 16:40:44 +08:00
parent bcf1471ad2
commit 78992f6054
2 changed files with 13 additions and 1 deletions

View File

@ -52,6 +52,7 @@ public final class Events {
return EventInternalJvmKt._subscribeEventForJaptOnly(eventClass, GlobalScope.INSTANCE, onEvent);
}
/**
* 阻塞地广播一个事件.
*

View File

@ -13,4 +13,15 @@ import kotlinx.coroutines.runBlocking
import net.mamoe.mirai.event.Event
import net.mamoe.mirai.event.broadcast
internal fun <E : Event> broadcast(e: E): E = runBlocking { e.broadcast() }
internal fun <E : Event> broadcast(e: E): E = runBlocking { e.broadcast() }
class A{
var x = 0
var width:Int
get() = x
set(value){
x = value
}
}