Scheduler1 2. 비동기, 코루틴, 크론 탭 스케줄러 [kotlin / jsoup] 스케줄러를 만들때 사용한 async와 scheduled 어노테이션, 그리고 코루틴에 대해 알아봅시다. 목차 사용된 코드 @EnableScheduling @EnableAsync class ThreemovieapiApplication @Async @Scheduled(cron = "0 0/5 * * * ?") fun chkMovieShowingTime() { runBlocking { for (mbTheater in mbTheaters) { CoroutineScope(Dispatchers.IO).async { updateMBShowtimes(mbTheater) } .also { showTimeAsync.add(it) } } for (lcTheater in lcTheaters) { CoroutineScope(Di.. 2023. 6. 23. 이전 1 다음