close

inline suspend fun MIDIPort.close(): MIDIPort(source)

The close() method of the MIDIPort interface makes the access to the MIDI device connected to this MIDIPort unavailable.

MDN Reference