Alamofire: Ambiguous use of 'Task' error on 4.4.0

Created on 15 Jun 2017  路  2Comments  路  Source: Alamofire/Alamofire

open func resume() {
    guard let task = task else { delegate.queue.isSuspended = false ; return }

    if startTime == nil { startTime = CFAbsoluteTimeGetCurrent() }

    task.resume()

    NotificationCenter.default.post(
        name: Notification.Name.Task.DidResume,
        object: self,
        userInfo: [Notification.Key.Task: task] // error occurred
    )
}
support

Most helpful comment

i have this error too . but my Xcode version is 9.0. how to solve it

All 2 comments

Make sure you're using the latest Xcode version with a clean environment, as this isn't an issue we see.

i have this error too . but my Xcode version is 9.0. how to solve it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthijsotterloo picture matthijsotterloo  路  3Comments

Footjy picture Footjy  路  3Comments

yamifr07 picture yamifr07  路  3Comments

zhouhao27 picture zhouhao27  路  3Comments

simonliotier picture simonliotier  路  3Comments