Commit 89b39de1 authored by Him188's avatar Him188

Make sendPacket (internal) inline

parent 2fcb7b88
...@@ -225,7 +225,7 @@ internal abstract class TIMPCBotBase constructor( ...@@ -225,7 +225,7 @@ internal abstract class TIMPCBotBase constructor(
internal inline fun <R> inline(block: () -> R): R = block() 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] 的返回值. * 以 [Bot] 作为接收器 (receiver) 并调用 [block], 返回 [block] 的返回值.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment