HasResult

1.0.0

Frizlab/HasResult

What's New

HasResult 1.0

2021-12-06T15:56:17Z

HasResult

A simple protocol package that does nothing. The HasResult protocol has a simple result property and a ResultType associated type. This is mostly useful for Operation (the operation has a result type which can be retrieved when the operation is done).

This whole library fits in these lines:

public protocol HasResult {

   associatedtype ResultType
   var result: Result<ResultType, Error> {get}

}

This protocol is easy to create in one’s project, but it can be useful to share and reuse a common protocol.

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Jan 01 2023 09:25:12 GMT-0500 (GMT-05:00)