mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-22 13:46:13 +08:00
I DON'T KNOW
This commit is contained in:
parent
bcf1471ad2
commit
78992f6054
@ -52,6 +52,7 @@ public final class Events {
|
||||
return EventInternalJvmKt._subscribeEventForJaptOnly(eventClass, GlobalScope.INSTANCE, onEvent);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 阻塞地广播一个事件.
|
||||
*
|
||||
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user