Skip to content
Snippets Groups Projects
Commit abf737b2 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update CMixWaitForRoundResult

parent c43ec974
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!25Update Bindings
......@@ -2,22 +2,22 @@ import Bindings
import XCTestDynamicOverlay
public struct CMixWaitForRoundResult {
public var run: (E2ESendReport, Int, MessageDeliveryCallback) throws -> Void
public var run: (Data, Int, MessageDeliveryCallback) throws -> Void
public func callAsFunction(
report: E2ESendReport,
roundList: Data,
timeoutMS: Int,
callback: MessageDeliveryCallback
) throws {
try run(report, timeoutMS, callback)
try run(roundList, timeoutMS, callback)
}
}
extension CMixWaitForRoundResult {
public static func live(_ bindingsCMix: BindingsCmix) -> CMixWaitForRoundResult {
CMixWaitForRoundResult { report, timeoutMS, callback in
CMixWaitForRoundResult { roundList, timeoutMS, callback in
try bindingsCMix.wait(
forRoundResult: try report.encode(),
forRoundResult: roundList,
mdc: callback.makeBindingsMessageDeliveryCallback(),
timeoutMS: timeoutMS
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment