Instance Methodpointfreeco.swift-sharing 2.2.0Sharing
load(context:continuation:)
FileStorageKey.swift:107func load(context _: LoadContext<Value>, continuation: LoadContinuation<Value>)
func load(context _: LoadContext<Value>, continuation: LoadContinuation<Value>)
s7Sharing14FileStorageKeyC4load7context12continuationyAA11LoadContextOyxG_AA0H12ContinuationVyxGtF
What are these?38LS1
import Sharing
Instantly share state among your app’s features and external persistence layers, including user defaults, the file system, and more.
final class FileStorageKey<Value> where Value : Sendable
A type defining a file persistence strategy
enum LoadContext<Value>
The context in which a value is loaded by a SharedReaderKey
.
struct LoadContinuation<Value>
A mechanism to communicate with a shared key’s external system, synchronously or asynchronously.
var id: FileStorageKeyID { get }
func save(_ value: Value, context: SaveContext, continuation: SaveContinuation)
func subscribe(context _: LoadContext<Value>, subscriber: SharedSubscriber<Value>) -> SharedSubscription