Dimillian / IceCubesApp

A SwiftUI Mastodon client
https://apps.apple.com/us/app/ice-cubes-for-mastodon/id6444915884
GNU Affero General Public License v3.0
5.57k stars 539 forks source link

Replaced to async method for URLSessionWebSocketTask.receive(). #2145

Open kitwtnb opened 4 months ago

kitwtnb commented 4 months ago

Using MainActor properties in an unstructured task would cause build errors in Swift 6, so URLSessionWebSocketTask.receive(completionHandler:) was replaced with URLSessionWebSocketTask.receive() async throws.

Dimillian commented 3 months ago

This is cool thanks! Will try in a bit and merge!

Dimillian commented 3 months ago

This is weird, I've been testing it extensively and never received any message.