Package-level declarations

Types

Link copied to clipboard
abstract class Stage<S : Stage<S>>

用于 StageLoop 中进行循环的状态集。 Stage 会被 StageLoop 的泛型所约束,通常情况下需要实现 Stage 并提供特定的类型界限,例如:

Link copied to clipboard
expect open class StageLoop<S : Stage<S>>

可挂起的事件循环器。

actual open class StageLoop<S : Stage<S>>

可挂起的事件循环器。

actual open class StageLoop<S : Stage<S>>

可挂起的事件循环器。

actual open class StageLoop<S : Stage<S>>

可挂起的事件循环器。

Functions

Link copied to clipboard
inline suspend fun <S : Stage<S>> StageLoop<S>.loop(crossinline condition: (next: S?) -> Boolean = { next -> next != null }, crossinline exceptionHandle: (Throwable) -> Unit = { e -> throw e })

通过提供的 StageLoop 进行循环。