-
- All Implemented Interfaces:
-
kotlin.coroutines.CoroutineContext,kotlin.coroutines.CoroutineContext.Element
public final class SharedCalls implements CoroutineContext.Element
The CoroutineContext.Element which holds ongoing calls until those get finished.
The purpose of shared calls is to stop side effects for the same call executing multiple times.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSharedCalls.Key
-
Field Summary
Fields Modifier and Type Field Description private final CoroutineContext.Key<SharedCalls>key
-
Constructor Summary
Constructors Constructor Description SharedCalls()
-
Method Summary
Modifier and Type Method Description CoroutineContext.Key<SharedCalls>getKey()A key of SharedCalls coroutine context element. -
-
Method Detail
-
getKey
CoroutineContext.Key<SharedCalls> getKey()
A key of SharedCalls coroutine context element.
-
-
-
-