[swift-evolution] asyncAfter(deadline: ...)
glessard at tffenterprises.com
Wed Jul 27 03:23:18 CDT 2016
The newer version of the libdispatch overlay (as of 8ac413a) looks good: thanks for your work Matt!
It replaced async(when: ) with asyncAfter(deadline: ); however dictionaries say:
1 the latest time or date by which something should be completed
dispatch_async’s timestamp is the *earliest* time at which work can be *initiated*, so “deadline” is completely backwards.
If a label is necessary, “time” would seem just fine, given the new name of the function: asyncAfter(time: ).
Personally, I don’t think a label is necessary anymore, since the first parameter of asyncAfter is a timestamp type.
More information about the swift-evolution