Pinned Loading
-
A swift dependency injection example...
A swift dependency injection example using a variable property and generics 1import Foundation
23protocol SomeProtocol<Thing>
4{
5associatedtype Thing
-
Concurrent Generic NSCache wrapper i...
Concurrent Generic NSCache wrapper in Swift -- thought it was interesting, might delete later :P 1import Foundation
2import Dispatch
3import SwiftUI
45class Cache<K:AnyObject,V:AnyObject>
-
ImageCacheActor with NSCache backing...
ImageCacheActor with NSCache backing store 1/*
23This code is based on an WWDC demonstration regarding Actors
4I combined it with NSCache
5 -
LRUCache+DependencyInjection.swift
LRUCache+DependencyInjection.swift 1import Foundation
234protocol LRUKeyStore<K>
5{
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.