Make sendPacket (internal) inline

This commit is contained in:
Him188 2019-12-30 23:25:01 +08:00
parent 2fcb7b88f4
commit 89b39de1ff

View File

@ -225,7 +225,7 @@ internal abstract class TIMPCBotBase constructor(
internal inline fun <R> inline(block: () -> R): R = block()
internal suspend fun TIMPCBot.sendPacket(toSend: OutgoingPacket) = this.network.socket.sendPacket(toSend)
internal suspend inline fun TIMPCBot.sendPacket(toSend: OutgoingPacket) = this.network.socket.sendPacket(toSend)
/**
* [Bot] 作为接收器 (receiver) 并调用 [block], 返回 [block] 的返回值.