Skip to content

Commit 66f6d9e

Browse files
committed
Delivering distributed notification immediately to avoid delays when invoking the extension's commands
1 parent a52f275 commit 66f6d9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PACore/Source/PAInvocation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public final class PAInvocation {
6666
do {
6767
let data = try JSONSerialization.data(withJSONObject: info, options: [])
6868
if let json = String(data: data, encoding: .utf8) {
69-
DistributedNotificationCenter.default().post(name: Notifications.CreatePlayground, object: json, userInfo: nil)
69+
DistributedNotificationCenter.default().postNotificationName(Notifications.CreatePlayground, object: json, userInfo: nil, deliverImmediately: true)
7070
}
7171
} catch {
7272
throw PAInvocationError.invalidData

0 commit comments

Comments
 (0)