Complete the asynchoronous methods

Report a typo

Select the annotation that makes the runTask method run asynchronously.

Java
import org.springframework.scheduling.annotation.Async;

@Component
@EnableAsync
public class Runner implements CommandLineRunner {
    
    _____________
    private void runTask() {
        System.out.println("Task runnings!");
    }
}
Kotlin
import org.springframework.scheduling.annotation.Async

@Component
@EnableAsync
class Runner : CommandLineRunner {

    _____________
    fun runTask() {
        println("Task runnings!")
    }
}
Select one option from the list
___

Create a free account to access the full topic