diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2swift/SwiftUtil.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp index 874d6f3949f..ef5453aca20 100644 --- a/cpp/src/slice2swift/SwiftUtil.cpp +++ b/cpp/src/slice2swift/SwiftUtil.cpp @@ -1150,9 +1150,12 @@ SwiftGenerator::writeProxyOperation(::IceUtilInternal::Output& out, const Operat } // context out << "context: Context? = nil"; + + // extra async params if(async) { out << "sent: ((Bool) -> Void)? = nil"; + out << "sentOn: Dispatch.DispatchQueue? = PromiseKit.conf.Q.map"; } out << epar; @@ -1266,6 +1269,14 @@ SwiftGenerator::writeProxyOperation(::IceUtilInternal::Output& out, const Operat } out << "],"; out << nl << "context: context"; + + // extra async params + if(async) + { + out << ", "; + out << nl << "sent: sent,"; + out << nl << "sentOn: sentOn"; + } out << ")"; out.restoreIndent(); |