PrivMX DOCS
API Reference/PrivMX Endpoint Swift Extra/Core

PrivMXEventLoop

PrivMXEventLoop is responsible for asynchronously managing and processing PrivMX events. It acts as an event handler, receiving, parsing, and publishing events on a background loop.

Fields

isListening

Bool Indicates whether the event loop is currently listening for events.

Methods

stopListening()

Stops the event loop by emitting a break event.

public func stopListening(
) throws -> Void

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.