func asyncF(_ item: Int, transform: (Int) async -> String), nextContinuation: () -> Void) async -> String [sync] func asyncF(_ item: Int, transform: (Int) -> String) -> String { var out: String! asyncF(item, sync_to_async(transform), { out = $0 }) return out }
(edited)