forked from zelo72/mastodon-ios
fix: parser concurrency issue for Kanna
This commit is contained in:
parent
1493b6700c
commit
7d6240f8f4
|
@ -15,7 +15,7 @@ enum MastodonStatusContent {
|
||||||
typealias EmojiShortcode = String
|
typealias EmojiShortcode = String
|
||||||
typealias EmojiDict = [EmojiShortcode: URL]
|
typealias EmojiDict = [EmojiShortcode: URL]
|
||||||
|
|
||||||
static let workingQueue = DispatchQueue(label: "org.joinmastodon.app.ActiveLabel.working-queue", qos: .userInteractive, attributes: .concurrent)
|
static let workingQueue = DispatchQueue(label: "org.joinmastodon.app.ActiveLabel.working-queue", qos: .userInteractive)
|
||||||
|
|
||||||
static func parseResult(content: String, emojiDict: MastodonStatusContent.EmojiDict) -> AnyPublisher<MastodonStatusContent.ParseResult?, Never> {
|
static func parseResult(content: String, emojiDict: MastodonStatusContent.EmojiDict) -> AnyPublisher<MastodonStatusContent.ParseResult?, Never> {
|
||||||
return Future { promise in
|
return Future { promise in
|
||||||
|
|
Loading…
Reference in New Issue