close()

Closes the channel and finishes Receivedmessages.

Declaration

@MainActor final func close()