success

@NotNull
abstract fun <T> success(@NotNull result: @NotNull T): @NotNull DataResult<T>(source)

Creates a successful DataResult with the given result. The lifecycle of the result is experimental.

Parameters

result

The result

<T>

The type of the result

See also

DataResult

@NotNull
abstract fun <T> success(@NotNull result: @NotNull T, @NotNull lifecycle: @NotNull Lifecycle): @NotNull DataResult<T>(source)

Creates a successful DataResult with the given results and lifecycle.

Parameters

result

The result

lifecycle

The lifecycle to use

<T>

The type of the result

See also

DataResult