Intermediate Kotlin
Q43 / 100

What is the difference between suspend fun and a regular fun?

Correct! Well done.

Incorrect.

The correct answer is B) A suspend function can be paused and resumed later; it can only be called from a coroutine or another suspend function

B

Correct Answer

A suspend function can be paused and resumed later; it can only be called from a coroutine or another suspend function

Explanation

The suspend modifier allows a function to use suspension points (like delay or await). The compiler transforms it into a state machine.

Progress
43/100