BoltsFramework / Bolts-ObjC

Bolts is a collection of low-level libraries designed to make developing mobile apps easier.
Other
5.65k stars 578 forks source link

How to create a delay task in Swift #315

Closed ananfang closed 3 years ago

ananfang commented 6 years ago

After updating to version 1.9.0, Xcode shows the error about

// Create a task with 1000 ms delay
BFTask<AnyObject>(delay: 1000) 

Error message: Argument labels '(delay:)' do not match any available overloads

How to create a delay task in Swift?