无法使用PromiseKit在当前上下文中推断闭包类型

时间:2019-06-15 19:42:19

标签: swift promisekit

我试图将当前项目从Swift 3更新到4.2,并遇到了一些我无法解决的领域,希望这里有人可以帮忙。我遇到错误:

  

无法在当前上下文中推断闭包类型

第一行中的

。对我来说,承诺也是全新的。

let _ = Promise<Void> {fulfill, _ in fulfill()}
.then {
     NotificationHelper.shared.reloadNotifications()
}.then {
     self.handleNotification(application, userInfo: userInfo)
}.always {
     ToadProgress.hide()
}

0 个答案:

没有答案