Enumeration Case

Result.success(_:)

A success, storing a Success value.

Declaration

case success(Success)

See Also

Representing a Result

case failure(Failure)

A failure, storing a Failure value.

Writing Failable Asynchronous APIs

Vend results as part of an API when you can’t return errors synchronously.