@@ -157,31 +157,31 @@ public class DispatchQueue : DispatchObject {
157157 }
158158
159159 public func asyncAfter( deadline: DispatchTime , execute work: ( ) -> ( ) ) {
160- dispatch_after ( deadline. rawValue, self . queue, work)
160+ dispatch_after ( deadline. rawValue, self . queue, { work ( ) ; } )
161161 }
162162
163163 public func asyncAfter( wallDeadline: DispatchWallTime , execute work: ( ) -> ( ) ) {
164- dispatch_after ( wallDeadline. rawValue, self . queue, work)
164+ dispatch_after ( wallDeadline. rawValue, self . queue, { work ( ) ; } )
165165 }
166166
167167 public func concurrentPerform( iterations: Int , execute work: ( UInt ) -> ( ) ) {
168- dispatch_apply ( iterations, self . queue, work)
168+ dispatch_apply ( iterations, self . queue, { work ( $0 ) } )
169169 }
170170
171171 public func async ( execute work: ( ) -> ( ) ) {
172- dispatch_async ( self . queue, work)
172+ dispatch_async ( self . queue, { work ( ) ; } )
173173 }
174174
175175 public func async ( group: DispatchGroup ? , execute work: ( ) -> ( ) ) {
176176 if group != nil {
177- dispatch_group_async ( group!. group, self . queue, work)
177+ dispatch_group_async ( group!. group, self . queue, { work ( ) } )
178178 } else {
179- dispatch_async ( self . queue, work)
179+ dispatch_async ( self . queue, { work ( ) } )
180180 }
181181 }
182182
183183 public func sync( execute work: ( ) -> ( ) ) {
184- dispatch_sync ( self . queue, work)
184+ dispatch_sync ( self . queue, { work ( ) } )
185185 }
186186
187187 #if !ISLAND
0 commit comments