Clearable Scheduled Executor Service
Wrapper class for ScheduledExecutorService that supports cancelAllJobs operation. To support this, we keep internal variable futures.
Note that jobs registered via invokeAny calls are not cancelled by cancelAllJobs - since the jobs are automatically cancelled for these methods. See invokeAny.
All access to the internal variable futures must be synchronized.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun scheduleAtFixedRate(@NonNull command: Runnable, initialDelay: Long, period: Long, @NonNull unit: TimeUnit): ScheduledFuture<out Any>
Link copied to clipboard
open fun scheduleWithFixedDelay(@NonNull command: Runnable, initialDelay: Long, delay: Long, @NonNull unit: TimeUnit): ScheduledFuture<out Any>
Link copied to clipboard