Package-level declarations
Types
Link copied to clipboard
无限循环的环形迭代器。CyclicIterator 将会永远拥有结果。
Link copied to clipboard
Link copied to clipboard
object RandomIDUtil
随机ID工具。
Link copied to clipboard
Value值为 weak 的 Map。
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T1, T2, T3, T4, T5> eliminateUnit(function: Consumer5<T1, T2, T3, T4, T5>): (T1, T2, T3, T4, T5) -> Unit
Kotlin api:
Link copied to clipboard
Link copied to clipboard
得到一个随机ID字符串。
Link copied to clipboard
inline suspend fun <T> runWithInterruptible(context: CoroutineContext = RunWithInterruptibleDefaultCoroutineContext, crossinline block: () -> T): T
默认使用 DefaultBlockingDispatcher 作为调度器的可中断执行函数。
Link copied to clipboard
fun <T1, T2> suspendConsumer(isRunWithInterruptible: Boolean = true, function: BiConsumer<T1, T2>): suspend (T1, T2) -> Unit
fun <T1, T2, T3> suspendConsumer(isRunWithInterruptible: Boolean = true, function: Consumer3<T1, T2, T3>): suspend (T1, T2, T3) -> Unit
fun <T1, T2, T3, T4> suspendConsumer(isRunWithInterruptible: Boolean = true, function: Consumer4<T1, T2, T3, T4>): suspend (T1, T2, T3, T4) -> Unit
fun <T1, T2, T3, T4, T5> suspendConsumer(isRunWithInterruptible: Boolean = true, function: Consumer5<T1, T2, T3, T4, T5>): suspend (T1, T2, T3, T4, T5) -> Unit
fun <T> suspendConsumer(isRunWithInterruptible: Boolean = true, function: Consumer<T>): suspend (T) -> Unit
Kotlin api:
Link copied to clipboard
fun <T1, T2, R> suspendFunction(isRunWithInterruptible: Boolean = true, function: BiFunction<T1, T2, R>): suspend (T1, T2) -> R
fun <T1, T2, T3, R> suspendFunction(isRunWithInterruptible: Boolean = true, function: (T1, T2, T3) -> R): suspend (T1, T2, T3) -> R
fun <T1, T2, T3, T4, R> suspendFunction(isRunWithInterruptible: Boolean = true, function: (T1, T2, T3, T4) -> R): suspend (T1, T2, T3, T4) -> R
fun <T1, T2, T3, T4, T5, R> suspendFunction(isRunWithInterruptible: Boolean = true, function: (T1, T2, T3, T4, T5) -> R): suspend (T1, T2, T3, T4, T5) -> R
fun <T, R> suspendFunction(isRunWithInterruptible: Boolean = true, function: Function<T, R>): suspend (T) -> R
Kotlin api:
Link copied to clipboard
获取系统参数。