Skip to content

Instantly share code, notes, and snippets.

class OAO {
let concurrent = DispatchQueue(label: "OAO", attributes: .concurrent)
let arrayQueue = DispatchQueue(label: "OAO.array", attributes: .concurrent)
// Thread-Safe
private var _array: [Int] = []
private var array: [Int] {
get {
protocol P {
func test()
}
private struct Object {
let index: Int
}
extension Object: P {
fileprivate func test() {
//
// CatWidget.swift
// WidgetCollection
//
// Created by 李昇輯 on 2024/7/25.
//
import AppIntents
import SwiftUI
import WidgetKit