This commit is contained in:
Him188 2019-12-30 23:21:48 +08:00
parent 44cda2b196
commit 2fcb7b88f4

View File

@ -194,8 +194,8 @@ internal abstract class TIMPCBotBase constructor(
internal suspend inline fun <reified P : Packet> OutgoingPacket.sendAndExpect(
checkSequence: Boolean = true,
timeoutMillist: Long = 5.secondsToMillis
): P = withTimeout(timeoutMillist) { sendAndExpectAsync<P, P>(checkSequence) { it }.await() }
timeoutMillis: Long = 5.secondsToMillis
): P = withTimeout(timeoutMillis) { sendAndExpectAsync<P, P>(checkSequence) { it }.await() }
internal suspend inline fun OutgoingPacket.send() = network.socket.sendPacket(this)