Asynchronous methods

Report a typo

Add the annotation that will make the method asynchronous.

Java
@Component
public class JobScheduler {
	
    __________
    @Scheduled(fixedRate = 1000)
    public void startJob() {
        System.out.println("Job Started!");
    }
}
Kotlin
@Component
class JobScheduler {

    __________
    @Scheduled(fixedRate = 1000)
    fun startJob() {
        println("Job Started!");
    }
}
Select one option from the list
___

Create a free account to access the full topic