OperationKt

public final class OperationKt


Summary

Public methods

static final @NonNull Operation.State.SUCCESS

Awaits an Operation without blocking a thread.

Public methods

OperationKt.await

@NonNull
public static final Operation.State.SUCCESS OperationKt.await(@NonNull Operation receiver)

Awaits an Operation without blocking a thread.

This method returns the terminal state of the [Operation] which is [Operation.State.SUCCESS] or throws a [Throwable] that represents why the [Operation] failed.