Package 

Class CallKt

    • Method Summary

      Modifier and Type Method Description
      final <T extends Any> Result<T> await(Call<T> $self) Awaits the result of this Call in a suspending way, asynchronously.
      final <T extends Any, K extends Any> Call<K> map(Call<T> $self, Function1<T, K> mapper)
      final <T extends Any, K extends Any> Call<Pair<T, K>> zipWith(Call<T> $self, Call<K> call)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • await

         final <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 <T extends Any, K extends Any> Call<K> map(Call<T> $self, Function1<T, K> mapper)