Skip to content

Instantly share code, notes, and snippets.

View shles's full-sized avatar
🦁
Roar

Artemiy Shlesberg shles

🦁
Roar
View GitHub Profile
//
// Created by Sean Heber on 8/11/22.
//
import Foundation
enum ExponentialBackoffError : Error {
case retryLimitExceeded
}
@taji-taji
taji-taji / OnceExecutable.swift
Created February 9, 2022 08:20
1回だけ更新可能、1回だけ実行可能
import Foundation
@propertyWrapper
class OnceExecutable {
@OnceUpdatable
private var execute: () -> Void
private var isExecuted = false
var wrappedValue: () -> Void {
get { execute }