Enumeration Case

Result.failure(_:)

A failure, storing a Failure value.

Declaration

case failure(Failure)

See Also

Representing a Result

case success(Success)

A success, storing a Success value.

Writing Failable Asynchronous APIs

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