[swift-users] Retro-fitting @noescape
Daniel Eggert
danieleggert at me.com
Mon Jan 11 08:29:13 CST 2016
I’m trying to wrap
public typealias dispatch_data_applier_t = (dispatch_data_t!, Int, UnsafePointer<Void>, Int) -> Bool
public func dispatch_data_apply(data: dispatch_data_t, _ applier: dispatch_data_applier_t) -> Bool
with
func forEach(@noescape body: (UInt8) throws -> ()) rethrows
but since dispatch_data_apply() promises to be @noescape (in the documentation), but doesn’t declare it, I’m stuck. Is there a way to tell the compiler: Really, this will not escape?
/Daniel
More information about the swift-users
mailing list