-
public final class CallKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> Result<T>await(Call<T> $self)Awaits the result of this Call in a suspending way, asynchronously. final static <T extends Any, K extends Any> Call<K>map(Call<T> $self, Function1<T, K> mapper)final static <T extends Any, K extends Any> Call<Pair<T, K>>zipWith(Call<T> $self, Call<K> call)final static Call<Unit>toUnitCall(Call<?> $self)final static <T extends Any> Unitenqueue(Call<T> $self, Function1<T, Unit> onSuccess, Function1<ChatError, Unit> onError)-
-
Method Detail
-
await
final static <T extends Any> Result<T> await(Call<T> $self)
Awaits the result of this Call in a suspending way, asynchronously. Safe to call from any CoroutineContext.
Does not throw exceptions. Any errors will be wrapped in the Result that's returned.
-
zipWith
final static <T extends Any, K extends Any> Call<Pair<T, K>> zipWith(Call<T> $self, Call<K> call)
-
toUnitCall
final static Call<Unit> toUnitCall(Call<?> $self)
-
-
-
-