Instance Methodpackage-distributed-system 36.0.1DistributedSystem
start(at:)
DistributedSystemServer.swift:102func start(at address: NetworkAddress = NetworkAddress.anyAddress) async throws
func start(at address: NetworkAddress = NetworkAddress.anyAddress) async throws
s17DistributedSystem0aB6ServerC5start2atyAA14NetworkAddressV_tYaKF
What are these?WCHT
import DistributedSystem
class DistributedSystemServer
struct NetworkAddress
func addService(name: String, toModule moduleID: DistributedSystem.ModuleIdentifier, metadata: [String : String]? = nil, _ factory: @escaping DistributedSystemServer.ServiceFactory) async throws -> UUID
@discardableResult func addService(ofType type: any ServiceEndpoint.Type, toModule moduleID: DistributedSystem.ModuleIdentifier, metadata: [String : String]? = nil, _ factory: @escaping DistributedSystemServer.ServiceFactory) async throws -> UUID
@discardableResult func removeService(_ serviceID: UUID) async throws -> Bool
override func stop()
func updateMetadata(_ metadata: [String : String], forService serviceID: UUID) async throws