Contents

eventStream

An asynchronous stream of session events.

Declaration

var eventStream: AsyncStream<CredentialSession.Event> { get async }

Discussion

Consume and handle events as the session produces then. Do this with a for-await-in loop over the stream, like the following example:

for await event in session.eventStream {
    // Handle event.
}

See Also

Handling session events