What is the missing parameter in TaskState<TResult> in Bolts-Swift?

399 Views Asked by At

In the Bolts-Swift framework Task.swift, upgrading to Swift 4 produces this error for this method:

class func emptyTask() -> Task<Void> {
    return Task<Void>(state: .success())
}

The error states:

Missing argument for parameter #1 in call

I understand that it's saying .success needs to take a parameter but without posting the entire file in here for context, can anybody with Bolts-Swift experience identify why this used to work in Swift 3 but doesn't work now using Swift 4?

0

There are 0 best solutions below