OperationKt

Added in 1.0.0

public final class OperationKt


Summary

Public methods

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

Awaits an Operation without blocking a thread.

Public methods

public static final @NonNull Operation.State.SUCCESS 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.