mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• 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
12 lines
373 B
Swift
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 {}
|
|
}
|
|
}
|