diff options
author | Joe George <joe@zeroc.com> | 2019-03-18 12:31:28 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2019-03-18 12:31:28 -0400 |
commit | 0eb46a6dfb1d620ce910848f5ff60ecb00e6824c (patch) | |
tree | 04ad77176ec20f6a5e90fafe2c9da55d513b3169 /cpp/src/slice2swift/SwiftUtil.cpp | |
parent | Proxy unmarshaling fixes (diff) | |
download | ice-0eb46a6dfb1d620ce910848f5ff60ecb00e6824c.tar.bz2 ice-0eb46a6dfb1d620ce910848f5ff60ecb00e6824c.tar.xz ice-0eb46a6dfb1d620ce910848f5ff60ecb00e6824c.zip |
Async fixes
Diffstat (limited to 'cpp/src/slice2swift/SwiftUtil.cpp')
-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(); |