Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.misc/Scheduler/schedule

schedule

abstract fun schedule(runnable: Runnable): Disposable

Schedules a Runnable for execution at some point in the future. Tasks will typically be executed on a first-in-first-out manner, but this depends on the Scheduler implementation.

Submitted tasks are cancellable by the returned Disposable instance.


abstract fun schedule(delay: TimeFrame, runnable: Runnable): Disposable

Schedules a Runnable for execution at some point in the future, but delayed by the provided delay. Tasks will not be executed before this delay.

Submitted tasks are cancellable by the returned Disposable instance.

Generated by Dokka
(c) Tealium 2026