Package 

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> Unit enqueue(Call<T> $self, Function1<T, Unit> onSuccess, Function1<ChatError, Unit> onError)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.

      • map

         final static <T extends Any, K extends Any> Call<K> map(Call<T> $self, Function1<T, K> mapper)