이제 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

androidx.ui.temputils

Top-level functions summary

Job
delay(duration: Duration, context: CoroutineContext, block: () -> Unit)

Run block after duration time passes using context.

Top-level functions

delay

fun delay(
    duration: Duration,
    context: CoroutineContext,
    block: () -> Unit
): Job

Run block after duration time passes using context.

Return
Job which is a reference to the running coroutine such that it can be cancelled via Job.cancel.