Package com.pexip.sdk.api.coroutines
Class CallUtilKt
-
- All Implemented Interfaces:
public final class CallUtilKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> Tawait(Call<T> $self)Suspends until the Call completes with either success or failure. final static Flow<Event>asFlow(EventSourceFactory $self)Converts this EventSourceFactory to a Flow. -
-
Method Detail
-
await
final static <T extends Any> T await(Call<T> $self)
Suspends until the Call completes with either success or failure.
- Returns:
successful response body
-
asFlow
final static Flow<Event> asFlow(EventSourceFactory $self)
Converts this EventSourceFactory to a Flow.
- Returns:
a Flow of Events
-
-
-
-