{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

DelayPropagatingContinuationInterceptorWrapper

@InternalTestApi
public abstract class DelayPropagatingContinuationInterceptorWrapper extends AbstractCoroutineContextElement implements ContinuationInterceptor

java.lang.Object
   ↳ kotlin.coroutines.AbstractCoroutineContextElement
     ↳ androidx.compose.ui.test.internal.DelayPropagatingContinuationInterceptorWrapper

A ContinuationInterceptor that wraps another interceptor and implements Delay. If the wrapped interceptor also implements Delay, the delay implementation is delegated to it, otherwise it's delegated to the default delay implementation (i.e. Dispatchers.Default). It is necessary that interceptors used in tests, with one of the TestDispatchers, propagate delay like this in order to work with the delay skipping that those dispatchers perform.

Summary

Public constructors

Inherited methods

From kotlin.coroutines.AbstractCoroutineContextElement
From kotlin.coroutines.ContinuationInterceptor
abstract @NonNull Continuation<@NonNull T>
<T extends Object> interceptContinuation(
    @NonNull Continuation<@NonNull T> continuation
)
void
From kotlin.coroutines.CoroutineContext
From kotlin.coroutines.CoroutineContext.Element
@NonNull R
<R extends Object> fold(
    @NonNull R initial,
    @NonNull Function2<@NonNull R, @NonNull CoroutineContext.Element, @NonNull R> operation
)
E
@NonNull CoroutineContext

Public constructors

DelayPropagatingContinuationInterceptorWrapper

public DelayPropagatingContinuationInterceptorWrapper(
    ContinuationInterceptor wrappedInterceptor
)