Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Apr 23, 2024
1 parent bd1f5a4 commit 14f809a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Aware/Shared/UserDefaults+AsyncSequence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ extension UserDefaults {
}
}

func updates<Element>(forKeyPath keyPath: String, type _: Element.Type = Element.self, initial: Bool = false)
-> AsyncStream<Element?>
{
func updates<Element>(
forKeyPath keyPath: String,
type _: Element.Type = Element.self,
initial: Bool = false
) -> AsyncStream<Element?> {
.init(bufferingPolicy: .bufferingNewest(1)) { continuation in
let observer = Observer<Element>(store: self, keyPath: keyPath) { value in
logger.debug("Yielding UserDefaults new \"\(keyPath, privacy: .public)\" value")
Expand Down

0 comments on commit 14f809a

Please sign in to comment.