PlatformSchedulerHooks

Platform scheduler hooks.

Design note

This is a low-level hook surface used by ktale-core and adapters to map KTale scheduling concepts onto a host runtime.

Implementations should be deterministic where possible and make TaskHandle.cancel idempotent.

Functions

Link copied to clipboard
abstract fun runAsync(task: Runnable): TaskHandle
Link copied to clipboard
abstract fun runAsyncDelayed(delay: Duration, task: Runnable): TaskHandle
Link copied to clipboard
abstract fun runAsyncRepeating(initialDelay: Duration, interval: Duration, task: Runnable): TaskHandle
Link copied to clipboard
abstract fun runSync(task: Runnable): TaskHandle
Link copied to clipboard
abstract fun runSyncDelayed(delay: Duration, task: Runnable): TaskHandle
Link copied to clipboard
abstract fun runSyncRepeating(initialDelay: Duration, interval: Duration, task: Runnable): TaskHandle