Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • mobile/ios/elixxir-dapps-sdk-swift
1 result
Select Git revision
Show changes
Commits on Source (7)
Showing
with 25 additions and 18 deletions
No preview for this file type
......@@ -67,7 +67,7 @@ Accepts a marshalled Message object
- (nonnull instancetype)init;
// skipped field AuthenticatedConnection.Connection with unsupported type: gitlab.com/elixxir/client/bindings.Connection
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
- (long)getId;
- (NSData* _Nullable)getPartner;
- (BOOL)isAuthenticated;
......@@ -209,7 +209,7 @@ passed timeout. It will return true if the network is healthy
/**
* Close deletes this Connection's partner.Manager and releases resources
*/
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
/**
* GetId returns the Connection.id
*/
......
No preview for this file type
......@@ -67,7 +67,7 @@ Accepts a marshalled Message object
- (nonnull instancetype)init;
// skipped field AuthenticatedConnection.Connection with unsupported type: gitlab.com/elixxir/client/bindings.Connection
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
- (long)getId;
- (NSData* _Nullable)getPartner;
- (BOOL)isAuthenticated;
......@@ -209,7 +209,7 @@ passed timeout. It will return true if the network is healthy
/**
* Close deletes this Connection's partner.Manager and releases resources
*/
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
/**
* GetId returns the Connection.id
*/
......
......@@ -67,7 +67,7 @@ Accepts a marshalled Message object
- (nonnull instancetype)init;
// skipped field AuthenticatedConnection.Connection with unsupported type: gitlab.com/elixxir/client/bindings.Connection
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
- (long)getId;
- (NSData* _Nullable)getPartner;
- (BOOL)isAuthenticated;
......@@ -209,7 +209,7 @@ passed timeout. It will return true if the network is healthy
/**
* Close deletes this Connection's partner.Manager and releases resources
*/
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
/**
* GetId returns the Connection.id
*/
......
......@@ -67,7 +67,7 @@ Accepts a marshalled Message object
- (nonnull instancetype)init;
// skipped field AuthenticatedConnection.Connection with unsupported type: gitlab.com/elixxir/client/bindings.Connection
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
- (long)getId;
- (NSData* _Nullable)getPartner;
- (BOOL)isAuthenticated;
......@@ -209,7 +209,7 @@ passed timeout. It will return true if the network is healthy
/**
* Close deletes this Connection's partner.Manager and releases resources
*/
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
/**
* GetId returns the Connection.id
*/
......
......@@ -67,7 +67,7 @@ Accepts a marshalled Message object
- (nonnull instancetype)init;
// skipped field AuthenticatedConnection.Connection with unsupported type: gitlab.com/elixxir/client/bindings.Connection
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
- (long)getId;
- (NSData* _Nullable)getPartner;
- (BOOL)isAuthenticated;
......@@ -209,7 +209,7 @@ passed timeout. It will return true if the network is healthy
/**
* Close deletes this Connection's partner.Manager and releases resources
*/
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
/**
* GetId returns the Connection.id
*/
......
......@@ -67,7 +67,7 @@ Accepts a marshalled Message object
- (nonnull instancetype)init;
// skipped field AuthenticatedConnection.Connection with unsupported type: gitlab.com/elixxir/client/bindings.Connection
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
- (long)getId;
- (NSData* _Nullable)getPartner;
- (BOOL)isAuthenticated;
......@@ -209,7 +209,7 @@ passed timeout. It will return true if the network is healthy
/**
* Close deletes this Connection's partner.Manager and releases resources
*/
- (void)close;
- (BOOL)close:(NSError* _Nullable* _Nullable)error;
/**
* GetId returns the Connection.id
*/
......
......@@ -172,7 +172,7 @@ ElixxirDAppsSDK [Xcode Workspace]
### Build schemes
- Use `exlixxir-dapps-sdk-swift` scheme to build the package with `ElixxirDAppsSDK` library.
- Use `exlixxir-dapps-sdk-swift` scheme to build and test the package with `ElixxirDAppsSDK` library.
- Use `ExampleApp (iOS)` to build and run the example app.
- Use `example-app` scheme to build and test the example app package with all contained libraries.
- Use `ExampleAppIcon` scheme with macOS target to build and preview the example app icon.
......
public final class Cancellable {
public init(cancel: @escaping () -> Void) {
self.cancel = cancel
self.onCancel = cancel
}
deinit {
cancel()
}
public let cancel: () -> Void
public func cancel() {
guard isCancelled == false else { return }
isCancelled = true
onCancel()
}
private var isCancelled = false
private let onCancel: () -> Void
}
import Bindings
public struct ConnectionCloser {
public var close: () -> Void
public var close: () throws -> Void
public func callAsFunction() {
close()
public func callAsFunction() throws {
try close()
}
}
......