This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Created by Sean Heber on 8/11/22. | |
| // | |
| import Foundation | |
| enum ExponentialBackoffError : Error { | |
| case retryLimitExceeded | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| @propertyWrapper | |
| class OnceExecutable { | |
| @OnceUpdatable | |
| private var execute: () -> Void | |
| private var isExecuted = false | |
| var wrappedValue: () -> Void { | |
| get { execute } |