summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2019-03-18 12:31:28 -0400
committerJoe George <joe@zeroc.com>2019-03-18 12:31:28 -0400
commit0eb46a6dfb1d620ce910848f5ff60ecb00e6824c (patch)
tree04ad77176ec20f6a5e90fafe2c9da55d513b3169 /cpp
parentProxy unmarshaling fixes (diff)
downloadice-0eb46a6dfb1d620ce910848f5ff60ecb00e6824c.tar.bz2
ice-0eb46a6dfb1d620ce910848f5ff60ecb00e6824c.tar.xz
ice-0eb46a6dfb1d620ce910848f5ff60ecb00e6824c.zip
Async fixes
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/slice2swift/SwiftUtil.cpp11
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();