Files
Morgan Pretty 5e4b5c0989 Fixed a few bugs with the observation system and increased logs
• Tweaked some libSession error logs
• Added some more logs to the notification extension around group configs
• Updated a bunch of logic to be flagged as `@MainActor` to get compile level checks around thread safety
• Fixed a crash when joining a community
• Fixed an issue where some events wouldn't refresh data in an expected way
• Fixed an issue where the observation could be lost
2025-07-09 16:57:25 +10:00

12 lines
373 B
Swift

// Copyright © 2025 Rangeproof Pty Ltd. All rights reserved.
import Foundation
/// This is a convenience method to force an async process to run indefinitely until it's parent task gets cancelled
public enum TaskCancellation {
public static func wait() async {
let (stream, _) = AsyncStream.makeStream(of: Void.self)
for await _ in stream {}
}
}