https://kotlinlang.org logo
#ktor
Title
# ktor
n

Nikky

08/07/2018, 11:55 PM
actually thats what i ended up doing.. not sure how well this will work..
Copy code
launch {
        while(true) {
           //do Work
            <http://log.info|log.info>("work complete")
            delay(4, TimeUnit.HOURS)
        }
    }
a

ayodele

02/23/2022, 1:49 PM
@Nikky where did you call this function??
n

Nikky

02/23/2022, 1:50 PM
this was 4 years ago.. i have no clue anymore.. probably in something like a
GlobalScope.launch
a

ayodele

02/23/2022, 1:51 PM
True lol. Didn't even check the date!!
I deloyed same code on Heroku but was not called