Functions

The following functions are available globally.

  • A thread-safe version of Swift’s standard print().

    Declaration

    Swift

    public func queuedPrint<T>(_ object: T)

    Parameters

    object

    Object to print.

  • A thread-safe, newline-terminated version of fputs(..., stderr).

    Declaration

    Swift

    public func queuedPrintError(_ string: String)

    Parameters

    string

    String to print.

  • A thread-safe, newline-terminated version of fatalError(...) that doesn’t leak the source path from the compiled binary.

    Declaration

    Swift

    public func queuedFatalError(_ string: String, file: StaticString = #file, line: UInt = #line) -> Never
  • Returns the reporter with the specified identifier. Traps if the specified identifier doesn’t correspond to any known reporters.

    Declaration

    Swift

    public func reporterFrom(identifier: String) -> Reporter.Type

    Parameters

    identifier

    The identifier corresponding to the reporter.

    Return Value

    The reporter type.