Contents

withSession(_:)

Synchronously begins a session, executes the given closure, and ends the session.

Declaration

func withSession<T>(_ body: @escaping () throws -> T) throws -> T

Parameters

  • body:

    A closure to be called in the context of the created session.

See Also

Transmitting Data