public class ChangeStreamIterablesKt
public static <T> void listen(@NotNull
com.mongodb.client.ChangeStreamIterable<T> $this$listen,
@NotNull
java.util.concurrent.ScheduledExecutorService executor,
long delay,
@NotNull
java.util.concurrent.TimeUnit unit,
@NotNull
kotlin.jvm.functions.Function1<? super com.mongodb.client.model.changestream.ChangeStreamDocument<T>,kotlin.Unit> listener)
Listens change stream in an other thread.
executor - the executor service for the thread instantiation - default is Executors.newSingleThreadExecutordelay - the delay the executor is waiting before submitting the taskunit - the unit of the delaylistener - to listen changes