All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pubnub.internal.extension.ScheduledExecutorService.kt Maven / Gradle / Ivy

package com.pubnub.internal.extension

import java.util.concurrent.ScheduledExecutorService
import java.util.concurrent.ScheduledFuture
import kotlin.time.Duration

fun ScheduledExecutorService.scheduleWithDelay(
    delay: Duration,
    action: () -> Unit,
): ScheduledFuture<*> = schedule(action, delay.inWholeMilliseconds, java.util.concurrent.TimeUnit.MILLISECONDS)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy