InternalTaskThrowingChannel

public protocol InternalTaskThrowingChannel
  • Declaration

    Swift

    associatedtype InProcess : Sendable
  • Sends element to sequence

    Declaration

    Swift

    func send(_ element: InProcess)

    Parameters

    element

    element

  • Fails sequence

    Declaration

    Swift

    func fail(_ error: Error)

    Parameters

    error

    error

  • Terminates sequence

    Declaration

    Swift

    func finish()
  • send(_:) Default implementation

    Default Implementation

    Sends element to sequence

    Declaration

    Swift

    func send(_ element: InProcess)

    Parameters

    element

    element

  • finish() Default implementation

    Default Implementation

    Terminates sequence

    Declaration

    Swift

    func finish()
  • fail(_:) Default implementation

    Default Implementation

    Fails sequence

    Declaration

    Swift

    func fail(_ error: Error)

    Parameters

    error

    error